aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/plugins/rspec/examples/pending_example.rb
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/plugins/rspec/examples/pending_example.rb')
-rw-r--r--vendor/plugins/rspec/examples/pending_example.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/plugins/rspec/examples/pending_example.rb b/vendor/plugins/rspec/examples/pending_example.rb
new file mode 100644
index 000000000..13f3d00c4
--- /dev/null
+++ b/vendor/plugins/rspec/examples/pending_example.rb
@@ -0,0 +1,20 @@
+require File.dirname(__FILE__) + '/spec_helper'
+
+describe "pending example (using pending method)" do
+ it %Q|should be reported as "PENDING: for some reason"| do
+ pending("for some reason")
+ end
+end
+
+describe "pending example (with no block)" do
+ it %Q|should be reported as "PENDING: Not Yet Implemented"|
+end
+
+describe "pending example (with block for pending)" do
+ it %Q|should have a failing block, passed to pending, reported as "PENDING: for some reason"| do
+ pending("for some reason") do
+ raise "some reason"
+ end
+ end
+end
+