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"