Skip to content

Commit f857b0f

Browse files
committed
Use the Yin name instead of BestRPSPlayerEver
1 parent 570cd87 commit f857b0f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bots/yin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class BestRPSPlayerEver
1+
class Yin
22
def play(*args)
33
screw_others
44
'R'

spec/yin_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ def play
2121

2222
describe 'the yin bot' do
2323
before :each do
24-
@bot = BestRPSPlayerEver.new
24+
@bot = Yin.new
2525
end
2626

2727
describe 'when initializing' do
2828
it 'should not accept arguments' do
29-
lambda { BestRPSPlayerEver.new :foo }.should raise_error(ArgumentError)
29+
lambda { Yin.new :foo }.should raise_error(ArgumentError)
3030
end
3131

3232
it 'should succeed' do
33-
lambda { BestRPSPlayerEver.new }.should_not raise_error
33+
lambda { Yin.new }.should_not raise_error
3434
end
3535

3636
it 'should return a bot of the correct class' do
37-
BestRPSPlayerEver.new.should be_a_kind_of(BestRPSPlayerEver)
37+
Yin.new.should be_a_kind_of(Yin)
3838
end
3939
end
4040

0 commit comments

Comments
 (0)