lib/taza/site.rb in bret-watircraft-0.4.4 vs lib/taza/site.rb in bret-watircraft-0.4.5

- old
+ new

@@ -1,8 +1,9 @@ require 'rubygems' require 'activesupport' require 'taza/settings' +require 'spec/matchers' module Taza # An abstraction of a website, but more really a container for a sites pages. # # You can generate a site by performing the following command: @@ -41,10 +42,12 @@ def pages @pages || @site.pages end end + include Spec::Matchers + @@before_browser_closes = Proc.new() {} # Use this to do something with the browser before it closes, but note that it is a class method which # means that this will get called for any instance of a site. # @@ -155,9 +158,10 @@ initialize_context!(Object.new) end def initialize_context!(context) context.extend @methods_module + context.extend Spec::Matchers context.site = @site context.browser = @site.browser context end