Hi,

When performing BDD there are few occasions when a certain example (BDD
test) depends on other context/example.

Here is one example:

describe Person  do

before do

@person = Person.new
@person.Age = 19

end

it "should be able to vote" do

@person.CanVote().should == true

end


describe "19 years old" do

it "should be able to vote"   # does not work

end



end


The context of "19 years old" fails since it requires to put the
"voting" context as a shared example which I don't want to do. If we can
just call other contexts within the parent context then it would be
great. I think it would be great if the above example just works.
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to