Skip to content

Commit

Permalink
Fix failing spec
Browse files Browse the repository at this point in the history
  • Loading branch information
richardmatthewsdev committed Dec 18, 2018
1 parent dc39f16 commit e6c9c77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/supplejack_common/json/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
end

describe '.records_json' do
let(:json_example_1) { '{"items": [{"title": "Record1"},{"title": "Record2"},{"title": "Record3"}]}' }
let(:json_example_2) { '{"items": {"title": "Record1"}}' }
let(:json_example_1) { RestClient::Response.create('{"items": [{"title": "Record1"}, {"title": "Record2"}, {"title": "Record3"}]}', double.as_null_object, double.as_null_object) }
let(:json_example_2) { RestClient::Response.create('{"items": {"title": "Record1"}}', double.as_null_object, double.as_null_object) }

it 'returns an array of records with the parsed json' do
klass.stub(:document) { json_example_1 }
Expand Down

0 comments on commit e6c9c77

Please sign in to comment.