README.markdown in rspec_api_test-0.0.1 vs README.markdown in rspec_api_test-0.0.2
- old
+ new
@@ -44,9 +44,13 @@
let(:response){ post("/users", test_data.to_json) }
it "creates a new user" do
response.code.should == 201
end
+
+ it "returned some location header" do
+ response.headers[:location].should_not be_blank
+ end
it "returned the correct id" do
u = get("/users/#{response[:id]}")
u[:name].should == test_data[:name]
end