Skip to content

Commit

Permalink
Removed support for rspec 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Stevens committed Jan 4, 2017
1 parent b626626 commit d7bb9a8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ dist: trusty
language: ruby

rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
- "ruby-2.3.0"
- 2.3

gemfile:
- gemfiles/rspec-2
- gemfiles/rspec-3

before_install:
Expand Down
3 changes: 0 additions & 3 deletions bin/with-rspec-2

This file was deleted.

10 changes: 0 additions & 10 deletions gemfiles/rspec-2

This file was deleted.

2 changes: 1 addition & 1 deletion lib/rspec/json_expectations/json_traverser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module JsonExpectations
# json atom paths.
class JsonTraverser
HANDLED_BY_SIMPLE_VALUE_HANDLER = [String, Numeric, FalseClass, TrueClass, NilClass]
RSPECMATCHERS = defined?(RSpec::Matchers) ? [RSpec::Matchers::BuiltIn::BaseMatcher] : []
RSPECMATCHERS = [RSpec::Matchers::BuiltIn::BaseMatcher]
SUPPORTED_VALUES = [Hash, Regexp, Array, Matchers::UnorderedArrayMatcher] +
HANDLED_BY_SIMPLE_VALUE_HANDLER + RSPECMATCHERS

Expand Down

0 comments on commit d7bb9a8

Please sign in to comment.