Thanks again for the parse/execute perspective Matt, that really sorted me
out.

Solution: Hey dummy, collect the data and create the array before starting
the describe function.

Moral of the story: I was trying to make collecting the data that I wanted
to verify part of the test/spec, partially because I had it stuck in my head
that 'everything' had to be inside a describe block, and partially because I
was treating RSpec like some new alien technology instead of a Ruby library.

Code:

@Array = [...] or Method to collect array data

@array.each do |name, stuff|
    describe name do
        it "should put the lotion in the basket" do
          <code>
        end
    end
end
-- 
View this message in context: 
http://old.nabble.com/RSpec-and-Watir%2C-easy-script-structure-question-tp27758607p27770149.html
Sent from the rspec-users mailing list archive at Nabble.com.

_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to