spec/page_module_spec.rb in taza-0.8.7 vs spec/page_module_spec.rb in taza-0.9.0

- old
+ new

@@ -1,6 +1,6 @@ -require 'spec/spec_helper' +require 'spec_helper' require 'taza/page' describe "Taza Page Module" do class PageWithModule < ::Taza::Page @@ -134,10 +134,10 @@ it "should execute filters for specific and all elements inside page modules" do page = PageWithFiltersAndModuleElements.new(:module) lambda { page.sample_element }.should raise_error(Taza::FilterError) page.another_sample_element.should eql(:something) end - + class PageWithFiltersAndModulesAndElements < ::Taza::Page page_module :foo_module do element(:sample_element) {:something} end page_module_filter :foo_filter, :foo_module