spec/trinidad/web_app_spec.rb in trinidad-0.3.0 vs spec/trinidad/web_app_spec.rb in trinidad-0.4.0

- old
+ new

@@ -36,11 +36,11 @@ start_context end it "should add a filter from the default web.xml" do start_context_with_web_xml - @web_app.context.findFilterDefs().size().should == 1 + @web_app.context.findFilterDefs().should have(1).filters end it "shouldn't duplicate init params" do start_context_with_web_xml lambda { @web_app.add_init_params }.should_not raise_error @@ -53,31 +53,31 @@ @web_app.context.findParameter('jruby.max.runtimes').should == '6' end it "should configure rack filter" do @web_app.add_rack_filter - @web_app.context.findFilterDefs().size().should == 1 + @web_app.context.findFilterDefs().should have(1).filters end it "should configure rack listener" do @web_app.add_rack_context_listener - @web_app.context.findApplicationListeners().size().should == 1 + @web_app.context.findApplicationListeners().should have(1).listeners end it "should have rack filter already configured" do @web_app.load_default_web_xml @web_app.rack_filter_configured?().should == true @web_app.add_rack_filter - @web_app.context.findFilterDefs().size().should == 0 + @web_app.context.findFilterDefs().should have(0).filters end it "should have rack listener already configured" do @web_app.load_default_web_xml @web_app.rack_listener_configured?().should == true @web_app.add_rack_context_listener - @web_app.context.findApplicationListeners().size().should == 0 + @web_app.context.findApplicationListeners().should have(0).listeners end def start_context_with_web_xml @web_app.load_default_web_xml start_context \ No newline at end of file