File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- class BestRPSPlayerEver
1
+ class Yin
2
2
def play ( *args )
3
3
screw_others
4
4
'R'
Original file line number Diff line number Diff line change @@ -21,20 +21,20 @@ def play
21
21
22
22
describe 'the yin bot' do
23
23
before :each do
24
- @bot = BestRPSPlayerEver . new
24
+ @bot = Yin . new
25
25
end
26
26
27
27
describe 'when initializing' do
28
28
it 'should not accept arguments' do
29
- lambda { BestRPSPlayerEver . new :foo } . should raise_error ( ArgumentError )
29
+ lambda { Yin . new :foo } . should raise_error ( ArgumentError )
30
30
end
31
31
32
32
it 'should succeed' do
33
- lambda { BestRPSPlayerEver . new } . should_not raise_error
33
+ lambda { Yin . new } . should_not raise_error
34
34
end
35
35
36
36
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 )
38
38
end
39
39
end
40
40
You can’t perform that action at this time.
0 commit comments