summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2015-06-08 21:18:21 +0200
committeranonym <anonym@riseup.net>2015-06-08 21:19:24 +0200
commit7d3e38166446bb7c0c30528f310f063a9dda28b3 (patch)
tree7bbaeccf85f1fe78c5e242b7f4843ab31f811b15
parent041de45a4a6810bb9588b2ff6d3a204f128ccf34 (diff)
Add demonstration of @expected_failure.test/7233-expected-failures
-rw-r--r--features/fail.feature7
-rw-r--r--features/step_definitions/common_steps.rb8
2 files changed, 15 insertions, 0 deletions
diff --git a/features/fail.feature b/features/fail.feature
new file mode 100644
index 0000000..4d31f54
--- /dev/null
+++ b/features/fail.feature
@@ -0,0 +1,7 @@
+Feature: Expected failures
+
+ @expected_failure
+ Scenario: Fail
+ When I do nothing
+ When I raise an exception
+ When I do nothing
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index 06077ff..b302efa 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -1004,3 +1004,11 @@ When /^I accept to import the key with Seahorse$/ do
next if @skip_steps_while_restoring_background
@screen.wait_and_click("TorBrowserOkButton.png", 10)
end
+
+When /^I do nothing$/ do
+ next
+end
+
+When /^I raise an exception$/ do
+ raise "An exception"
+end