Fix line number expecations

* Should have been part of prev commit. Shame on me.
This commit is contained in:
Markus Schirp 2015-04-27 22:08:10 +00:00
parent c392cb5e4b
commit a7db953b98
2 changed files with 10 additions and 10 deletions

View file

@ -43,14 +43,14 @@ RSpec.describe Mutant::Matcher::Method::Instance do
context 'when method is defined once' do context 'when method is defined once' do
let(:scope) { base::DefinedOnce } let(:scope) { base::DefinedOnce }
let(:method_line) { 10 } let(:method_line) { 8 }
it_should_behave_like 'a method matcher' it_should_behave_like 'a method matcher'
end end
context 'when method is defined once with a memoizer' do context 'when method is defined once with a memoizer' do
let(:scope) { base::WithMemoizer } let(:scope) { base::WithMemoizer }
let(:method_line) { 15 } let(:method_line) { 13 }
it_should_behave_like 'a method matcher' it_should_behave_like 'a method matcher'
end end
@ -58,7 +58,7 @@ RSpec.describe Mutant::Matcher::Method::Instance do
context 'when method is defined multiple times' do context 'when method is defined multiple times' do
context 'on different lines' do context 'on different lines' do
let(:scope) { base::DefinedMultipleTimes::DifferentLines } let(:scope) { base::DefinedMultipleTimes::DifferentLines }
let(:method_line) { 24 } let(:method_line) { 22 }
let(:method_arity) { 1 } let(:method_arity) { 1 }
it_should_behave_like 'a method matcher' it_should_behave_like 'a method matcher'
@ -66,7 +66,7 @@ RSpec.describe Mutant::Matcher::Method::Instance do
context 'on the same line' do context 'on the same line' do
let(:scope) { base::DefinedMultipleTimes::SameLineSameScope } let(:scope) { base::DefinedMultipleTimes::SameLineSameScope }
let(:method_line) { 29 } let(:method_line) { 27 }
let(:method_arity) { 1 } let(:method_arity) { 1 }
it_should_behave_like 'a method matcher' it_should_behave_like 'a method matcher'
@ -74,7 +74,7 @@ RSpec.describe Mutant::Matcher::Method::Instance do
context 'on the same line with different scope' do context 'on the same line with different scope' do
let(:scope) { base::DefinedMultipleTimes::SameLineDifferentScope } let(:scope) { base::DefinedMultipleTimes::SameLineDifferentScope }
let(:method_line) { 33 } let(:method_line) { 31 }
let(:method_arity) { 1 } let(:method_arity) { 1 }
it_should_behave_like 'a method matcher' it_should_behave_like 'a method matcher'

View file

@ -23,7 +23,7 @@ RSpec.describe Mutant::Matcher::Method::Singleton, '#each' do
context 'when also defined on lvar' do context 'when also defined on lvar' do
let(:scope) { base::AlsoDefinedOnLvar } let(:scope) { base::AlsoDefinedOnLvar }
let(:method_line) { 66 } let(:method_line) { 64 }
it_should_behave_like 'a method matcher' it_should_behave_like 'a method matcher'
@ -37,7 +37,7 @@ RSpec.describe Mutant::Matcher::Method::Singleton, '#each' do
context 'when defined on self' do context 'when defined on self' do
let(:scope) { base::DefinedOnSelf } let(:scope) { base::DefinedOnSelf }
let(:method_line) { 61 } let(:method_line) { 59 }
it_should_behave_like 'a method matcher' it_should_behave_like 'a method matcher'
end end
@ -46,13 +46,13 @@ RSpec.describe Mutant::Matcher::Method::Singleton, '#each' do
context 'inside namespace' do context 'inside namespace' do
let(:scope) { base::DefinedOnConstant::InsideNamespace } let(:scope) { base::DefinedOnConstant::InsideNamespace }
let(:method_line) { 71 } let(:method_line) { 69 }
it_should_behave_like 'a method matcher' it_should_behave_like 'a method matcher'
end end
context 'outside namespace' do context 'outside namespace' do
let(:method_line) { 78 } let(:method_line) { 76 }
let(:scope) { base::DefinedOnConstant::OutsideNamespace } let(:scope) { base::DefinedOnConstant::OutsideNamespace }
it_should_behave_like 'a method matcher' it_should_behave_like 'a method matcher'
@ -62,7 +62,7 @@ RSpec.describe Mutant::Matcher::Method::Singleton, '#each' do
context 'when defined multiple times in the same line' do context 'when defined multiple times in the same line' do
context 'with method on different scope' do context 'with method on different scope' do
let(:scope) { base::DefinedMultipleTimes::SameLine::DifferentScope } let(:scope) { base::DefinedMultipleTimes::SameLine::DifferentScope }
let(:method_line) { 97 } let(:method_line) { 95 }
let(:method_arity) { 1 } let(:method_arity) { 1 }
it_should_behave_like 'a method matcher' it_should_behave_like 'a method matcher'