lib/testable/context.rb
# Creates a definition context for actions and establishes the context
# for execution. Given an interface definition for a page like this:
#
#    class TestPage
#      include Testable
#
#      url_is "http://localhost:9292"
#    end
#
# You can do the following:
#
#    on_visit(TestPage)
Creates a definition context for actions and establishes the context
for execution. Given an interface definition for a page like this.

class TestPage
include Testable



You can do the following.


Creates a definition context for actions and establishes the context for execution . Given an interface definition for a page like this . class TestPage include Testable You can do the following .
def on_visit(definition, &block)
      create_active(definition)
      @context.visit
      verify_page(@context)
      call_block(&block)
    end
def on_visit ( definition , & block ) create_active ( definition ) @context . visit verify_page ( @context ) call_block ( & block ) end
Creates a definition context for actions and establishes the context
for execution.
Creates a definition context for actions and establishes the context for execution .
definition
<not_specific>
block
<not_specific>