Reputation: 449
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?
Upvotes: 1
Views: 1859
Reputation: 35836
The rspec keyword to define a context is describe
, and not define
.
Upvotes: 3