Fix examples, should green the build

This commit is contained in:
Adrian Perez 2013-08-03 18:06:12 +04:00
parent 4ec628cd1f
commit c64bbf22f3

View file

@ -28,8 +28,8 @@ describe Grape::ActiveModelSerializers do
end
it "should respond with proper content-type" do
subject.get("/home/users", :serializer => "user") do
{user: {first_name: "JR", last_name: "HE"}}
subject.get("/home/users", :serializer => UserSerializer) do
User.new
end
get("/home/users")
last_response.headers["Content-Type"].should == "application/json"