aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'features/step_definitions/prohibit_viewing_some_pages_steps.rb')
-rw-r--r--features/step_definitions/prohibit_viewing_some_pages_steps.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/features/step_definitions/prohibit_viewing_some_pages_steps.rb b/features/step_definitions/prohibit_viewing_some_pages_steps.rb
new file mode 100644
index 0000000..9c01d0d
--- /dev/null
+++ b/features/step_definitions/prohibit_viewing_some_pages_steps.rb
@@ -0,0 +1,4 @@
+Then /^I should be prohibited to visit (.+)/ do |page_name|
+ assert_raise(Hobo::PermissionDeniedError){ visit path_to(page_name) }
+end
+