test/sassc_rails_test.rb in sassc-rails-0.0.7 vs test/sassc_rails_test.rb in sassc-rails-0.0.8

- old
+ new

@@ -28,10 +28,11 @@ def render_asset(asset) app.assets[asset].to_s end def initialize! + Rails.env = "test" @app.initialize! end def initialize_dev! Rails.env = "development" @@ -42,17 +43,18 @@ Rails.env = "production" @app.initialize! end def test_setup_works - initialize! + initialize_dev! asset = render_asset("application.scss") assert_equal <<-CSS, asset .hello { - color: #FFF; } + color: #FFF; +} CSS end def test_raises_sassc_syntax_error initialize! @@ -164,10 +166,15 @@ initialize! css_output = render_asset("special_characters.scss") end def test_compression_works - skip + initialize_prod! + + asset = render_asset("application.scss") + assert_equal <<-CSS, asset +.hello{color:#FFF} + CSS end #test 'sprockets require works correctly' do # skip