Skip to content

Commit 5aef34c

Browse files
author
Francesco Rodriguez
committed
fix assertions
1 parent 2d812b5 commit 5aef34c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

test/fixtures/engine_project/script/rails

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
ENGINE_ROOT = File.expand_path('../..', __FILE__)
55
ENGINE_PATH = File.expand_path('../../lib/engine_project/engine', __FILE__)
66

7+
require 'rails'
78
require 'rails/all'
89
require 'rails/engine/commands'

test/sass_rails_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class SassRailsTest < Sass::Rails::TestCase
1616

1717
test 'css_compressor config item is not honored in development mode' do
1818
within_rails_app 'alternate_config_project' do
19-
runcmd "ruby script/rails runner 'puts Rails.application.config.assets.css_compressor'", Dir.pwd, true, "Gemfile", {"RAILS_ENV" => "production"}
20-
assert '', $last_ouput
19+
runcmd "ruby script/rails runner 'p Rails.application.config.assets.css_compressor'", Dir.pwd, true, "Gemfile", {"RAILS_ENV" => "development"}
20+
assert_output /nil/
2121
end
2222
end
2323

@@ -51,8 +51,8 @@ class SassRailsTest < Sass::Rails::TestCase
5151

5252
test 'sass not defines compressor in development mode' do
5353
within_rails_app 'scss_project' do
54-
runcmd "ruby script/rails runner 'puts Rails.application.config.assets.css_compressor'", Dir.pwd, true, 'Gemfile', {'RAILS_ENV' => 'development'}
55-
assert '', $last_ouput
54+
runcmd "ruby script/rails runner 'p Rails.application.config.assets.css_compressor'", Dir.pwd, true, 'Gemfile', {'RAILS_ENV' => 'development'}
55+
assert_output /nil/
5656
end
5757
end
5858

0 commit comments

Comments
 (0)