Skip to content

Commit 9f8fd91

Browse files
committed
Speed up the test suite a bit
We can remove the call to bundle install since we are running rake through bundler so all the dependencies are already installed. Moreover, the call to `rake db:create` is necessary only if we are testing against Rails 3.2 but this is not the case. Running `time rake test`: user system total Before 178.47s 10.05s 3:47.44 After 40.91s 4.15s 45.481
1 parent 8bd17a2 commit 9f8fd91

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test/support/sass_rails_test_case.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ def within_rails_app(name, without_gems = [], gem_options = $gem_options)
7979
gem_options.each { |gem_name, options| modify_gem_entry gem_name, options }
8080
without_gems.each { |gem_name| remove_gem name }
8181

82-
FileUtils.rm("Gemfile.lock") if File.exist?("Gemfile.lock")
83-
84-
runcmd "bundle install --verbose"
85-
runcmd "bundle exec rake db:create --trace"
86-
8782
yield tmpdir
8883
end
8984
end

0 commit comments

Comments
 (0)