natritmeyer/site_prism — pull request #15 by bbbco (2013-02-01 07:45:32+00:00)
Title: Anonymous sections created using element/s methods

Here is your resubmission @nat with a couple more tests added, and functionality added for collections (aka multiple elements).
--------------------
I have been working with a modified version of this gem, and added the functionality to define an anonymous section by passing a block to the element method.

This allows you to do something like:

``` ruby
element :anonymous_section, "div#anonymous_section" do |section|
section.element :span_inside, "span"
end
.....
# Now you can reference the span inside the anonymous_section just as if you had created a separate AnonymousSection < SitePrism::Section class
anonymous_section.should have_span_inside
````