Skip to content

Instantly share code, notes, and snippets.

@jessereynolds
Created December 16, 2013 23:54
Show Gist options
  • Select an option

  • Save jessereynolds/7997396 to your computer and use it in GitHub Desktop.

Select an option

Save jessereynolds/7997396 to your computer and use it in GitHub Desktop.
rspec failures after switching from json to oj on flapjack master
All examples were filtered out; ignoring {:focus=>true}
1) Flapjack::Gateways::API::ContactMethods lists a contact's notification rules
Failure/Error: expect(notification_rule_2).to receive(:to_json).and_return('"rule_2"')
(Double Flapjack::Data::NotificationRule).to_json(any args)
expected: 1 time with any arguments
received: 0 times with any arguments
# ./spec/lib/flapjack/gateways/api/contact_methods_spec.rb:201:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:96:in `block (2 levels) in <top (required)>'
2) Flapjack::Gateways::API::EntityMethods non-bulk API calls returns the status for all checks on an entity
Failure/Error: expect(last_response.body).to eq(['status!'].to_json)
expected: "[\"status!\"]"
got: "[{\"name\":\"status\"}]"
(compared using ==)
# ./spec/lib/flapjack/gateways/api/entity_methods_spec.rb:60:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:96:in `block (2 levels) in <top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment