Я пытаюсь сделать Ruby Kada, но когда я пытаюсь запустить свою спецификацию, я получаю «Тесты не найдены».
У меня есть 2 файла в моем проекте:
poker_hands.rb
, который содержит:
def announce_winner (s)
'Player x is the winner.'
end
и poker_hands_spec.rb
, который содержит:
require 'rspec'
require 'poker_hands'
define 'poker_hands' do
it 'should announce a winner' do
x = announce_winner('')
x.should == 'Player x is the winner.'
end
end
Я использую RubyMine 4.0.3 и rspec 2.10.0.
изменить: Вот копия моей трассировки стека
Любые идеи?