0

I'm trying to do a Ruby Kada, but when I try to run my spec, I get "No tests were found."

I have 2 files in my project:

poker_hands.rb, which contains:

def announce_winner (s)
   'Player x is the winner.'
end

and poker_hands_spec.rb, which contains:

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

I'm running RubyMine 4.0.3 and rspec 2.10.0

edit: Here is a copy of my stacktrace

Any ideas?

4

1 回答 1

2

用于定义上下文的 rspec 关键字是describe,而不是define

于 2012-05-16T06:00:47.567 回答