Consider the following snippet:
before(:each) do
#How can I see the fruits and veggies being operated on here?
end
['apples','pears', 'banananas'].each do |fruit|
it "Can add #{fruit} to the fruit basket" do
#fruit basket tests here
end
end
['eggplant', 'lima beans', 'peas'].each do |veggie|
it "Can remove #{veggie} from the fruit basket" do
#veggie removal tests here
end
end
Thanks for the help,
Cris
--
You received this message because you are subscribed to the Google Groups
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rspec/09f872b7-a5c0-4848-afe9-fb3e72e78689n%40googlegroups.com.