From c0eb49ea4e0a533f38add1eefae006f9e3f86da1 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Mon, 16 Sep 2013 00:25:01 +0530 Subject: [PATCH] According to https://github.com/slim-template/slim/blob/master/CHANGES `attr_wrapper` has been renamed to `attr_quote` Fix slim tests to handle this change --- test/slim_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/slim_test.rb b/test/slim_test.rb index 02dea47a..d5a9fb87 100644 --- a/test/slim_test.rb +++ b/test/slim_test.rb @@ -48,7 +48,7 @@ class SlimTest < Test::Unit::TestCase HTML4_DOCTYPE = "" it "passes slim options to the slim engine" do - mock_app { get('/') { slim("x foo='bar'", :attr_wrapper => "'") }} + mock_app { get('/') { slim("x foo='bar'", :attr_quote => "'") }} get '/' assert ok? assert_body "" @@ -56,7 +56,7 @@ class SlimTest < Test::Unit::TestCase it "passes default slim options to the slim engine" do mock_app do - set :slim, :attr_wrapper => "'" + set :slim, :attr_quote => "'" get('/') { slim("x foo='bar'") } end get '/' @@ -66,9 +66,9 @@ class SlimTest < Test::Unit::TestCase it "merges the default slim options with the overrides and passes them to the slim engine" do mock_app do - set :slim, :attr_wrapper => "'" + set :slim, :attr_quote => "'" get('/') { slim("x foo='bar'") } - get('/other') { slim("x foo='bar'", :attr_wrapper => '"') } + get('/other') { slim("x foo='bar'", :attr_quote => '"') } end get '/' assert ok?