From 728fbfea61e18e5eab3405dfa8ce04c320ccf79a Mon Sep 17 00:00:00 2001 From: Keenan Brock Date: Sun, 26 Apr 2015 14:52:02 -0400 Subject: [PATCH] Add adamantium to test_app gemspecs --- spec/unit/mutant/matcher/method/instance_spec.rb | 10 +++++----- spec/unit/mutant/matcher/method/singleton_spec.rb | 10 +++++----- test_app/Gemfile.rspec3.0 | 1 + test_app/Gemfile.rspec3.1 | 1 + test_app/Gemfile.rspec3.2 | 1 + test_app/lib/test_app.rb | 2 ++ 6 files changed, 15 insertions(+), 10 deletions(-) diff --git a/spec/unit/mutant/matcher/method/instance_spec.rb b/spec/unit/mutant/matcher/method/instance_spec.rb index 7302ec65..00fc9817 100644 --- a/spec/unit/mutant/matcher/method/instance_spec.rb +++ b/spec/unit/mutant/matcher/method/instance_spec.rb @@ -43,14 +43,14 @@ RSpec.describe Mutant::Matcher::Method::Instance do context 'when method is defined once' do let(:scope) { base::DefinedOnce } - let(:method_line) { 8 } + let(:method_line) { 10 } it_should_behave_like 'a method matcher' end context 'when method is defined once with a memoizer' do let(:scope) { base::WithMemoizer } - let(:method_line) { 13 } + let(:method_line) { 15 } it_should_behave_like 'a method matcher' end @@ -58,7 +58,7 @@ RSpec.describe Mutant::Matcher::Method::Instance do context 'when method is defined multiple times' do context 'on different lines' do let(:scope) { base::DefinedMultipleTimes::DifferentLines } - let(:method_line) { 22 } + let(:method_line) { 24 } let(:method_arity) { 1 } it_should_behave_like 'a method matcher' @@ -66,7 +66,7 @@ RSpec.describe Mutant::Matcher::Method::Instance do context 'on the same line' do let(:scope) { base::DefinedMultipleTimes::SameLineSameScope } - let(:method_line) { 27 } + let(:method_line) { 29 } let(:method_arity) { 1 } 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 let(:scope) { base::DefinedMultipleTimes::SameLineDifferentScope } - let(:method_line) { 31 } + let(:method_line) { 33 } let(:method_arity) { 1 } it_should_behave_like 'a method matcher' diff --git a/spec/unit/mutant/matcher/method/singleton_spec.rb b/spec/unit/mutant/matcher/method/singleton_spec.rb index 57246a34..3f3b9b2d 100644 --- a/spec/unit/mutant/matcher/method/singleton_spec.rb +++ b/spec/unit/mutant/matcher/method/singleton_spec.rb @@ -23,7 +23,7 @@ RSpec.describe Mutant::Matcher::Method::Singleton, '#each' do context 'when also defined on lvar' do let(:scope) { base::AlsoDefinedOnLvar } - let(:method_line) { 64 } + let(:method_line) { 66 } 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 let(:scope) { base::DefinedOnSelf } - let(:method_line) { 59 } + let(:method_line) { 61 } it_should_behave_like 'a method matcher' end @@ -46,13 +46,13 @@ RSpec.describe Mutant::Matcher::Method::Singleton, '#each' do context 'inside namespace' do let(:scope) { base::DefinedOnConstant::InsideNamespace } - let(:method_line) { 69 } + let(:method_line) { 71 } it_should_behave_like 'a method matcher' end context 'outside namespace' do - let(:method_line) { 76 } + let(:method_line) { 78 } let(:scope) { base::DefinedOnConstant::OutsideNamespace } 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 'with method on different scope' do let(:scope) { base::DefinedMultipleTimes::SameLine::DifferentScope } - let(:method_line) { 95 } + let(:method_line) { 97 } let(:method_arity) { 1 } it_should_behave_like 'a method matcher' diff --git a/test_app/Gemfile.rspec3.0 b/test_app/Gemfile.rspec3.0 index 184d936a..c5be86a7 100644 --- a/test_app/Gemfile.rspec3.0 +++ b/test_app/Gemfile.rspec3.0 @@ -3,3 +3,4 @@ gem 'rspec', '~> 3.0.0' gem 'rspec-core', '~> 3.0.0' gem 'mutant', path: '../' gem 'mutant-rspec', path: '../' +gem 'adamantium' diff --git a/test_app/Gemfile.rspec3.1 b/test_app/Gemfile.rspec3.1 index 671ab7f7..2a76703e 100644 --- a/test_app/Gemfile.rspec3.1 +++ b/test_app/Gemfile.rspec3.1 @@ -3,3 +3,4 @@ gem 'rspec', '~> 3.1.0' gem 'rspec-core', '~> 3.1.0' gem 'mutant', path: '../' gem 'mutant-rspec', path: '../' +gem 'adamantium' diff --git a/test_app/Gemfile.rspec3.2 b/test_app/Gemfile.rspec3.2 index b2b5a937..f28925bb 100644 --- a/test_app/Gemfile.rspec3.2 +++ b/test_app/Gemfile.rspec3.2 @@ -3,3 +3,4 @@ gem 'rspec', '~> 3.2.0' gem 'rspec-core', '~> 3.2.0' gem 'mutant', path: '../' gem 'mutant-rspec', path: '../' +gem 'adamantium' diff --git a/test_app/lib/test_app.rb b/test_app/lib/test_app.rb index b1aa3e3e..0a34285a 100644 --- a/test_app/lib/test_app.rb +++ b/test_app/lib/test_app.rb @@ -1,3 +1,5 @@ +require 'adamantium' + original = $VERBOSE # Namespace for test application # Silence intentional violations