diff options
Diffstat (limited to 'spec/controllers/api/v1/tutorials_controller_spec.rb')
| -rw-r--r-- | spec/controllers/api/v1/tutorials_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/api/v1/tutorials_controller_spec.rb b/spec/controllers/api/v1/tutorials_controller_spec.rb index d1e9a749..b32cebfd 100644 --- a/spec/controllers/api/v1/tutorials_controller_spec.rb +++ b/spec/controllers/api/v1/tutorials_controller_spec.rb @@ -13,7 +13,7 @@ describe Api::V1::TutorialsController do let!(:other_tutorial) { create(:tutorial) } it "returns the users tutorials" do - xhr :get, :index + get :index, xhr: true expect(assigns(:tutorials)).to match_array([my_tutorial]) end end @@ -27,7 +27,7 @@ describe Api::V1::TutorialsController do description: "Connect with your friends - and other fascinating people", tags: "cake,cookie", } - xhr :post, :create, tutorial: attributes + post :create, params: { tutorial: attributes }, xhr: true expect(assigns(:tutorial)).to be_present expect(assigns(:tutorial).url).to eql(attributes[:url]) |
