Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark examples without should as pending #591

Closed
quaternion opened this issue Mar 28, 2012 · 1 comment
Closed

Mark examples without should as pending #591

quaternion opened this issue Mar 28, 2012 · 1 comment

Comments

@quaternion
Copy link

describe Array do
  it "should size be 0" do
    subject.size == 0
  end
end

This example is passed, but developer forgot call should method. It would be logical to remind him about it and mark the example as pending. I could be wrong, but it seems that the rspec-expectations gem already have the appropriate interfaces.

@dchelimsky
Copy link
Contributor

This has been requested and rejected before. First, not everybody uses rspec-expectations, so this would need to be conditional. Second, the following is perfectly valid:

it "executes with no exception" do
  do_something
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants