Permalink
Browse files

Fix typos functional singleton method specs.

Spec was testing for mutations on an instance method where it should have been
on a singleton method.
  • Loading branch information...
1 parent 4a9afc0 commit 2d64d7c6f25251e65929f6a08dc4dedf49eadf5d @txus committed Feb 12, 2012
@@ -18,11 +18,11 @@ def self.answer
write_file 'spec/life_spec.rb', """
require 'life'
- describe 'Life#answer' do
+ describe 'Life.answer' do
specify { Life.answer.should eq(42) }
end
"""
- run_simple '../../bin/mutate Life#answer spec/life_spec.rb'
+ run_simple '../../bin/mutate Life.answer spec/life_spec.rb'
end
specify 'the mutation passes' do
@@ -35,11 +35,11 @@ def self.answer
write_file 'spec/life_spec.rb', """
require 'life'
- describe 'Life#answer' do
+ describe 'Life.answer' do
specify { Life.answer.should be_a(Fixnum) }
end
"""
- run_simple '../../bin/mutate Life#answer spec/life_spec.rb'
+ run_simple '../../bin/mutate Life.answer spec/life_spec.rb'
end
specify 'the mutation fails' do
@@ -18,11 +18,11 @@ def self.answer
write_file 'spec/life_spec.rb', """
require 'life'
- describe 'Life#answer' do
+ describe 'Life.answer' do
specify { Life.answer.should eq(42.05) }
end
"""
- run_simple '../../bin/mutate Life#answer spec/life_spec.rb'
+ run_simple '../../bin/mutate Life.answer spec/life_spec.rb'
end
specify 'the mutation passes' do
@@ -35,11 +35,11 @@ def self.answer
write_file 'spec/life_spec.rb', """
require 'life'
- describe 'Life#answer' do
+ describe 'Life.answer' do
specify { Life.answer.should be_a(Float) }
end
"""
- run_simple '../../bin/mutate Life#answer spec/life_spec.rb'
+ run_simple '../../bin/mutate Life.answer spec/life_spec.rb'
end
specify 'the mutation fails' do

0 comments on commit 2d64d7c

Please sign in to comment.