spec/plugin/content_for_spec.rb in roda-2.29.0 vs spec/plugin/content_for_spec.rb in roda-3.0.0
- old
+ new
@@ -1,6 +1,6 @@
-require File.expand_path("spec_helper", File.dirname(File.dirname(__FILE__)))
+require_relative "../spec_helper"
begin
require 'tilt/erb'
rescue LoadError
warn "tilt not installed, skipping content_for plugin test"
@@ -50,21 +50,16 @@
end
end
end
end
- deprecated "should replace with multiple calls to the same key by default" do
- body.strip.must_equal "bar baz"
- end
-
it "should replace with multiple calls to the same key if :append=>false plugin option is used" do
app.plugin :content_for, :append => false
body.strip.must_equal "bar baz"
end
- # RODA3: Make default behavior
it "should append with multiple calls to the same key if :append=>true plugin option is used" do
- app.plugin :content_for, :append => true
+ app.plugin :content_for
body.strip.must_equal "bar foobaz"
end
end
end