spec/plugin/module_include_spec.rb in roda-2.2.0 vs spec/plugin/module_include_spec.rb in roda-2.3.0
- old
+ new
@@ -1,20 +1,20 @@
require File.expand_path("spec_helper", File.dirname(File.dirname(__FILE__)))
describe "module_include plugin" do
- it "should include given module in request or response class" do
+ it "must_include given module in request or response class" do
app(:bare) do
plugin :module_include
request_module(Module.new{def h; halt response.finish end})
response_module(Module.new{def finish; [1, {}, []] end})
route do |r|
r.h
end
end
- req.should == [1, {}, []]
+ req.must_equal [1, {}, []]
end
it "should accept blocks and turn them into modules" do
app(:bare) do
plugin :module_include
@@ -24,11 +24,11 @@
route do |r|
r.h
end
end
- req.should == [1, {}, []]
+ req.must_equal [1, {}, []]
end
it "should work if called multiple times with a block" do
app(:bare) do
plugin :module_include
@@ -40,9 +40,9 @@
route do |r|
r.i
end
end
- req.should == [1, {}, []]
+ req.must_equal [1, {}, []]
end
end