lib/taza/site.rb in taza-0.8.4 vs lib/taza/site.rb in taza-0.8.5

- old
+ new

@@ -91,11 +91,11 @@ Dir.glob(pages_path) do |file| require file page_name = File.basename(file,'.rb') page_class = "#{@module_name}::#{page_name.camelize}" self.class.class_eval <<-EOS - def #{page_name} - page = '#{page_class}'.constantize.new + def #{page_name}(page_module = nil) + page = '#{page_class}'.constantize.new(page_module) page.browser = @browser yield page if block_given? page end EOS