summaryrefslogtreecommitdiff
path: root/spec/controllers/tutorials_controller_spec.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-01-19 09:58:23 -0700
committermo khan <mo@mokhan.ca>2014-01-19 09:59:49 -0700
commit1d92fc21da004fa7763107bc68c479fabfda5669 (patch)
treea9dd514f6421dc9d21142de4291822a02e41caf6 /spec/controllers/tutorials_controller_spec.rb
parent8c2cdfc755bfb897e780675992e0cc4a0f1aa28d (diff)
redirect to dashboard after submitting a tutorial
Diffstat (limited to 'spec/controllers/tutorials_controller_spec.rb')
-rw-r--r--spec/controllers/tutorials_controller_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/controllers/tutorials_controller_spec.rb b/spec/controllers/tutorials_controller_spec.rb
index c5e08986..abe32db5 100644
--- a/spec/controllers/tutorials_controller_spec.rb
+++ b/spec/controllers/tutorials_controller_spec.rb
@@ -72,7 +72,7 @@ describe TutorialsController do
end
it "redirects to the created tutorial" do
- response.should redirect_to(tutorials_path)
+ response.should redirect_to(dashboard_path)
end
end
@@ -147,8 +147,7 @@ describe TutorialsController do
end
it "redirects to the tutorials list" do
- response.should redirect_to(tutorials_url)
+ response.should redirect_to(dashboard_path)
end
end
-
end