Skip to content

Commit d404d7b

Browse files
author
Edward Ocampo-Gooding
committed
Refactors tests:all Rake task
1 parent ef1140e commit d404d7b

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
We all love working with Sass, but compilation can take quite a long time for larger
44
codebases. This gem integrates the C implementation of Sass,
5-
[libsass](https://github.com/sass/libsass), into the asset pipeline.
5+
[LibSass](https://github.com/sass/libsass), into the asset pipeline.
66

77
In one larger project, this made compilation 4x faster:
88

@@ -25,9 +25,9 @@ This should essentially be a drop in alternative to [sass-rails](https://github.
2525
__Note: This is a new project, please report any issues you come across!__
2626

2727

28-
## Libsass Compatibility With Ruby Sass
28+
## LibSass Compatibility With Ruby Sass
2929

30-
For a look at the compatibility between Ruby Sass and Libsass, check this
30+
For a look at the compatibility between Ruby Sass and LibSass, check this
3131
[compatibility chart](http://sass-compatibility.github.io/) out.
3232

3333

@@ -46,7 +46,7 @@ And then execute:
4646

4747
## Deployment to Heroku
4848

49-
Due to Libsass compilation requirements, you upgrade to the
49+
Due to LibSass compilation requirements, you must upgrade to the
5050
[Heroku Cedar-14 Stack](https://devcenter.heroku.com/articles/cedar-14-migration)
5151
in order to successfully install this gem.
5252

Rakefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,17 @@ namespace :tests do
1616
]
1717

1818
gemfiles.each do |gemfile|
19-
desc "Run Tests against #{gemfile}"
19+
desc "Run tests against #{gemfile}"
2020
task gemfile do
21-
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
21+
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle install"
2222
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake test"
2323
end
2424
end
2525

26-
desc "Run Tests against all ORMs"
26+
desc "Run tests against all common asset pipeline setups"
2727
task :all do
2828
gemfiles.each do |gemfile|
29-
puts "Running Tests against #{gemfile}"
30-
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
31-
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake test"
29+
Rake::Task["tests:#{gemfile}"].invoke
3230
end
3331
end
3432
end

0 commit comments

Comments
 (0)