Skip to content

Commit

Permalink
Merge pull request collectiveidea#99 from olleolleolle/fix/2.4-tests
Browse files Browse the repository at this point in the history
Support Ruby 2.4.1
  • Loading branch information
laserlemon authored May 16, 2017
2 parents 714c968 + c9c899f commit 9acb719
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ matrix:
allow_failures:
- rvm: ruby-head
- rvm: "2.0"
- rvm: "2.1"
rvm:
- "2.0"
- "2.1"
- "2.2"
- "2.2.7"
- "2.3.4"
- "2.4.1"
- ruby-head
7 changes: 4 additions & 3 deletions spec/json_spec/matchers/have_json_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@

it "provides a failure message for negation" do
matcher = have_json_type(Numeric)
matcher.matches?(%(10))
matcher.failure_message_when_negated.should eq "Expected JSON value type to not be Numeric, got Fixnum"
matcher.failure_message_for_should_not.should eq "Expected JSON value type to not be Numeric, got Fixnum" # RSpec 2 interface
matcher.matches?(%(10.0))

matcher.failure_message_when_negated.should eq "Expected JSON value type to not be Numeric, got Float"
matcher.failure_message_for_should_not.should eq "Expected JSON value type to not be Numeric, got Float" # RSpec 2 interface
end

it "provides a description message" do
Expand Down

0 comments on commit 9acb719

Please sign in to comment.