Skip to content

Commit d3a0a16

Browse files
author
Rafael Mendonça França
committed
We use the tests environment on travis
1 parent b33702e commit d3a0a16

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/sass_rails_test.rb

+9-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,15 @@ class SassRailsTest < Sass::Rails::TestCase
9191
css_output = asset_output('css_application.css')
9292
assert_match /globbed/, css_output
9393

94-
assert File.exists?("#{app_root}/log/development.log"), "log file was not created"
95-
log_output = File.open("#{app_root}/log/development.log").read
94+
if File.exists?("#{app_root}/log/development.log")
95+
log_file = "#{app_root}/log/development.log"
96+
elsif File.exists?("#{app_root}/log/test.log")
97+
log_file = "#{app_root}/log/test.log"
98+
else
99+
flunk "log file was not created"
100+
end
101+
102+
log_output = File.open(log_file).read
96103
refute_match /Warning/, log_output
97104
end
98105
end

0 commit comments

Comments
 (0)