From bcc1d34443c52bbbec8ba8cc5c713f0feb9674e2 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Fri, 30 Sep 2011 17:18:06 -0500 Subject: [PATCH] adjust tests for less 2.0 --- Gemfile | 2 +- test/less_test.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index f33ede6b..108f6b4c 100644 --- a/Gemfile +++ b/Gemfile @@ -29,7 +29,7 @@ gem 'haml', '>= 3.0' gem 'sass' gem 'builder' gem 'erubis' -gem 'less', '~> 1.0' +gem 'less', '~> 2.0' gem 'liquid' gem 'slim', '~> 1.0' gem 'temple', '!= 0.3.3' diff --git a/test/less_test.rb b/test/less_test.rb index e79b8359..21014e31 100644 --- a/test/less_test.rb +++ b/test/less_test.rb @@ -16,7 +16,7 @@ class LessTest < Test::Unit::TestCase it 'renders inline Less strings' do less_app { less "@white_color: #fff; #main { background-color: @white_color }" } assert ok? - assert_equal "#main { background-color: #ffffff; }\n", body + assert_body "#main {background-color: #ffffff;}" end it 'defaults content type to css' do @@ -45,13 +45,13 @@ class LessTest < Test::Unit::TestCase it 'renders .less files in views path' do less_app { less :hello } assert ok? - assert_equal "#main { background-color: #ffffff; }\n", body + assert_body "#main {background-color: #ffffff;}" end it 'ignores the layout option' do less_app { less :hello, :layout => :layout2 } assert ok? - assert_equal "#main { background-color: #ffffff; }\n", body + assert_body "#main {background-color: #ffffff;}" end it "raises error if template not found" do