spec/plugin/named_templates_spec.rb in roda-2.2.0 vs spec/plugin/named_templates_spec.rb in roda-2.3.0
- old
+ new
@@ -23,13 +23,13 @@
@a = 1
view(:foo)
end
end
- body.should == 'bar13-foo12-baz'
+ body.must_equal 'bar13-foo12-baz'
@app = Class.new(@app)
- body.should == 'bar13-foo12-baz'
+ body.must_equal 'bar13-foo12-baz'
end
it "works when freezing the app" do
app(:bare) do
plugin :named_templates
@@ -48,13 +48,13 @@
view(:foo)
end
end
app.freeze
- body.should == 'bar13-foo12-baz'
+ body.must_equal 'bar13-foo12-baz'
- proc{app.template(:b){"a"}}.should raise_error
+ proc{app.template(:b){"a"}}.must_raise FrozenError
end
it "works with the view_subdirs plugin" do
app(:bare) do
plugin :render
@@ -87,10 +87,10 @@
view(:inline=>"barfoo<%= @a %><%= @b %>")
end
end
end
- body('/foo').should == 'foo13-foobar12-baz'
- body('/bar').should == 'bar43-barfoo42-baz'
+ body('/foo').must_equal 'foo13-foobar12-baz'
+ body('/bar').must_equal 'bar43-barfoo42-baz'
end
end
end