mirror of
https://github.com/samsonjs/grape-active_model_serializers.git
synced 2026-03-25 08:45:55 +00:00
Fix examples, should green the build
This commit is contained in:
parent
4ec628cd1f
commit
c64bbf22f3
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue