Permalink
Browse files

adjust tests for less 2.0

  • Loading branch information...
1 parent 90b7dc3 commit bcc1d34443c52bbbec8ba8cc5c713f0feb9674e2 @rkh rkh committed Sep 30, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 Gemfile
  2. +3 −3 test/less_test.rb
View
@@ -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'
View
@@ -16,7 +16,7 @@ def less_app(options = {}, &block)
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 @@ def less_app(options = {}, &block)
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

0 comments on commit bcc1d34

Please sign in to comment.