From c64bbf22f360e3f918e0b2e0958dcf0b7e66f758 Mon Sep 17 00:00:00 2001 From: Adrian Perez Date: Sat, 3 Aug 2013 18:06:12 +0400 Subject: [PATCH] Fix examples, should green the build --- spec/grape_ams_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/grape_ams_spec.rb b/spec/grape_ams_spec.rb index c9f90b5..c22ddca 100644 --- a/spec/grape_ams_spec.rb +++ b/spec/grape_ams_spec.rb @@ -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"