Last active
August 29, 2015 14:27
-
-
Save narkai/c0a75d4e729a10fab928 to your computer and use it in GitHub Desktop.
Revisions
-
lapico revised this gist
Aug 10, 2015 . No changes.There are no files selected for viewing
-
lapico revised this gist
Aug 10, 2015 . No changes.There are no files selected for viewing
-
lapico revised this gist
Aug 10, 2015 . 1 changed file with 17 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,35 +2,35 @@ require 'rails_helper' describe "users", :type => :request do describe 'users#create' do context "when is successfully created" do before(:each) do params = { data: { type: "users", attributes: { name: "rian", email: "[email protected]", password: "rody" } } } headers = { 'Content-Type' => "application/vnd.api+json", 'Accept' => "application/vnd.api+json" } # post api_v1_users_path, params, headers post "/api/v1/users", params, headers end it "responds with 200" do p response # expect(response).to be_success end end -
lapico created this gist
Aug 10, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,39 @@ require 'rails_helper' describe "users", :type => :request do describe 'users#create' do context "when is successfully created" do before(:each) do params = { data: { type: "users", attributes: { name: "rian", email: "[email protected]", password: "rody" } } } headers = { 'Content-Type' => "application/vnd.api+json", 'Accept' => "application/vnd.api+json" } # post api_v1_users_path, params, headers post "/api/v1/users", params, headers end it "responds with 200" do p response # expect(response).to be_success end end end end