spec/requests/cities_spec.rb in addresses-1.0.0 vs spec/requests/cities_spec.rb in addresses-1.0.1

- old
+ new

@@ -10,9 +10,12 @@ it "should return an interview" do json = JSON.parse(response.body) expect(response.status).to be(200) + expect(json[0]["id"]).to eq(city.id) expect(json[0]["name"]).to eq(city.name) + expect(json[0]["state"]["id"]).to eq(state.id) + expect(json[0]["state"]["name"]).to eq(state.name) end end end