[rspec-devel] [ rspec-Feature Requests-15718 ] warn user when two examples with the same name appear in the same example group

noreply at rubyforge.org noreply at rubyforge.org
Sun Nov 18 12:20:02 EST 2007


Feature Requests item #15718, was opened at 2007-11-18 17:20
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=15718&group_id=797

Category: None
Group: None
Status: Open
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
Assigned to: Nobody (None)
Summary: warn user when two examples with the same name appear in the same example group

Initial Comment:
Right now if you do this:

describe Foo do
  it "should bar" do
    ...
  end

  it "should bar" do
    ...
  end
end

RSpec will run both examples and provide output like this:

Foo
- should bar
- should bar

Perhaps rspec should warn you or raise an error when you do this.


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=15718&group_id=797


More information about the rspec-devel mailing list