Skip to content

Commit

Permalink
Add support for RSpec 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
damireh committed Jan 23, 2018
1 parent 1a6caef commit ec5c8eb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ PATH
unparser (~> 0.2.5)
mutant-rspec (0.8.14)
mutant (~> 0.8.14)
rspec-core (>= 3.4.0, < 3.7.0)
rspec-core (>= 3.4.0, < 3.8.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion mutant-rspec.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
gem.extra_rdoc_files = %w[LICENSE]

gem.add_runtime_dependency('mutant', "~> #{gem.version}")
gem.add_runtime_dependency('rspec-core', '>= 3.4.0', '< 3.7.0')
gem.add_runtime_dependency('rspec-core', '>= 3.4.0', '< 3.8.0')

gem.add_development_dependency('bundler', '~> 1.3', '>= 1.3.5')
end
2 changes: 1 addition & 1 deletion spec/integration/mutant/rspec_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

let(:base_cmd) { 'bundle exec mutant -I lib --require test_app --use rspec' }

%w[3.4 3.5 3.6].each do |version|
%w[3.4 3.5 3.6 3.7].each do |version|
context "RSpec #{version}" do
let(:gemfile) { "Gemfile.rspec#{version}" }

Expand Down
7 changes: 7 additions & 0 deletions test_app/Gemfile.rspec3.7
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://rubygems.org'
gem 'rspec', '~> 3.7.0'
gem 'rspec-core', '~> 3.7.0'
gem 'mutant', path: '../'
gem 'mutant-rspec', path: '../'
gem 'adamantium'
eval_gemfile File.expand_path('../../Gemfile.shared', __FILE__)

0 comments on commit ec5c8eb

Please sign in to comment.