Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
Fix typos functional singleton method specs.
Browse files Browse the repository at this point in the history
Spec was testing for mutations on an instance method where it should have been
on a singleton method.
  • Loading branch information
Josep M. Bach committed Feb 12, 2012
1 parent 4a9afc0 commit 2d64d7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions spec/functional/singleton_method/fixnum_spec.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions spec/functional/singleton_method/float_spec.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2d64d7c

Please sign in to comment.