Permalink
Browse files

add wip scenario that shows that pending doesn't short circuit execution

  • Loading branch information...
1 parent 5fa5030 commit 4a3776884110a4ccc969db598a2b691c1c0592f4 @dchelimsky dchelimsky committed Apr 19, 2010
Showing with 7 additions and 4 deletions.
  1. +2 −0 features/pending/pending_examples.feature
  2. +5 −4 spec/rspec/core/formatters/helpers_spec.rb
@@ -16,12 +16,14 @@ Feature: pending examples
And I should see "Not Yet Implemented"
And I should see "example_without_block_spec.rb:2"
+@wip
Scenario: pending any arbitary reason, with no block
Given a file named "pending_without_block_spec.rb" with:
"""
describe "an example" do
it "is implemented but waiting" do
pending("something else getting finished")
+ this should not get executed
end
end
"""
@@ -5,9 +5,10 @@
let(:helper) { helper = Object.new.extend(Rspec::Core::Formatters::Helpers) }
describe "format seconds" do
- pending "uses passed in precision if specified" do
- # can't get regex right to handle this case where we don't want it to consume all zeroes
- helper.format_seconds(0.00005, 2).should == "0.00"
+ it "uses passed in precision if specified" do
+ pending("get regex right to handle this case where we don't want it to consume all zeroes") do
+ helper.format_seconds(0.00005, 2).should == "0.00"
+ end
end
context "sub second times" do
@@ -35,4 +36,4 @@
end
-end
+end

0 comments on commit 4a37768

Please sign in to comment.