spec/lib/shamu/json_api/rails/controller_spec.rb in shamu-0.0.11 vs spec/lib/shamu/json_api/rails/controller_spec.rb in shamu-0.0.13
- old
+ new
@@ -101,17 +101,17 @@
end
describe "#render_resource" do
it "adds Location header" do
get :show, params: { id: 1 }
- expect( response.headers ).to include 'Location'
+ expect( response.headers ).to include "Location"
end
end
describe "#render_result" do
it "returns status created on #create" do
- post :create, params: { name: 'example' }
+ post :create, params: { name: "example" }
expect( response.status ).to eq 201
expect( response.body ).to include "data"
end
it "returns status ok on #update" do
@@ -201,10 +201,10 @@
attributes: {
name: "Example"
},
relationships: {
book: {
- data: { type: "book", id: "5", attributes: { title: "Bibliography" } }
+ data: { type: "book", id: "5", attributes: { title: "Bibliography" } }
},
stores: {
data: [
{ "type": "store", id: "56", attributes: { title: "First Street" } }
]