:pending => 'this message' should store message for later output #540

Closed
dchelimsky opened this Issue Dec 11, 2011 · 3 comments

2 participants

@dchelimsky
RSpec member

Given:

describe "Something" do
  it "does something", :pending => 'awaiting a revelation' do
  end
end

When I run rspec

Then the output should include:


Pending:
  Something does something
    # awaiting a revelation
    # ./example_spec.rb:2

But it just prints this instead:

Pending:
  Something does something
    # Not Yet Implemented
    # ./example_spec.rb:2
@jbrains

+1 as is. I would enjoy using it.

@dchelimsky
RSpec member

@jbrains in progress - coming shortly

@jbrains

Appreciated.

@dchelimsky dchelimsky was assigned Dec 11, 2011
@dchelimsky dchelimsky added a commit that closed this issue Dec 12, 2011
@dchelimsky dchelimsky :pending => 'message' assigns message (defaults to 'No reason given' …
…if :pending => true)

- defaults to 'No reason given' if :pending => true
- change default pending message to 'No reason given'
- assign 'Not yet implemented' when no block passed to example (a.k.a.
  it/specify)
- Closes #540
eb3d26e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment