diff options
| author | mo <mo.khan@gmail.com> | 2017-09-23 09:13:29 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2017-09-23 09:13:29 -0600 |
| commit | afc870216e5eb02c1c73ed018d21ec2d027db041 (patch) | |
| tree | 6c96a7d40c31a131f10e2da702afc4e685d17381 /spec/controllers/api/v2/tutorials_controller_spec.rb | |
| parent | 49ee70b30b2e114622f90bcf77ded003908006aa (diff) | |
upgrade specs
Diffstat (limited to 'spec/controllers/api/v2/tutorials_controller_spec.rb')
| -rw-r--r-- | spec/controllers/api/v2/tutorials_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/api/v2/tutorials_controller_spec.rb b/spec/controllers/api/v2/tutorials_controller_spec.rb index 65954243..4c4f4a5d 100644 --- a/spec/controllers/api/v2/tutorials_controller_spec.rb +++ b/spec/controllers/api/v2/tutorials_controller_spec.rb @@ -9,7 +9,7 @@ module Api let!(:tutorial) { create(:tutorial) } before :each do - xhr :get, :index + get :index, xhr: true end it "loads all the tutorials" do @@ -33,7 +33,7 @@ module Api let!(:tutorial) { create(:tutorial) } it "loads the single tutorial" do - xhr :get, :show, id: tutorial.id + get :show, params: { id: tutorial.id }, xhr: true expect(assigns(:tutorial)).to eql(tutorial) end end |
