Permalink
Browse files

Merge pull request #99 from olleolleolle/fix/2.4-tests

Support Ruby 2.4.1
2 parents 714c968 + c9c899f commit 9acb719eef0e7d27826e0b0ee373a9dc44d36bbf @laserlemon laserlemon committed May 16, 2017
Showing with 7 additions and 4 deletions.
  1. +3 −1 .travis.yml
  2. +4 −3 spec/json_spec/matchers/have_json_type_spec.rb
View
@@ -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
@@ -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

0 comments on commit 9acb719

Please sign in to comment.