Skip to content

Commit

Permalink
Merge pull request #9 from sue445/feature/drop_rspec2
Browse files Browse the repository at this point in the history
Drop support rspec 2.x
  • Loading branch information
sue445 committed Nov 16, 2016
2 parents 75ce03b + 3fcf011 commit 4d76665
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 16 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ rvm:
- 2.2
- 2.3.2
- ruby-head
gemfile:
- gemfiles/rspec2.gemfile
- gemfiles/rspec3.gemfile
cache: bundler
bundler_args: "--jobs=2"
before_script:
Expand All @@ -26,5 +23,4 @@ notifications:
matrix:
allow_failures:
- rvm: ruby-head
- gemfile: gemfiles/rspec2.gemfile
sudo: false
5 changes: 0 additions & 5 deletions gemfiles/rspec2.gemfile

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/rspec3.gemfile

This file was deleted.

2 changes: 1 addition & 1 deletion lib/rspec/temp_dir/uses_temp_dir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require "rspec"
require "pathname"

(RSpec.respond_to?(:shared_context) ? RSpec : Object).shared_context "uses temp dir" do
RSpec.shared_context "uses temp dir" do
around do |example|
Dir.mktmpdir("rspec-") do |dir|
@temp_dir = dir
Expand Down
2 changes: 1 addition & 1 deletion rspec-temp_dir.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.add_dependency "rspec"
spec.add_dependency "rspec", ">= 3.0"

spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
Expand Down

0 comments on commit 4d76665

Please sign in to comment.