Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
Use iso8601 time format in rspec expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
dazza-codes committed Oct 27, 2016
1 parent c8e206c commit 7ea5521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/examples/a_create_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def body_from_instance(instance, extra_params)
end
it "assigns the correct object to @#{factory.to_s}" do
expect(assigns(factory)).to be_a model_class
expect(assigns(factory).created_at.to_formatted_s(:dpn)).to eql(valid_post_body[:created_at])
expect(assigns(factory).created_at.iso8601).to eql(valid_post_body[:created_at])
end
it "renders json" do
expect(response.content_type).to eql("application/json")
Expand Down

0 comments on commit 7ea5521

Please sign in to comment.