Skip to content
This repository has been archived by the owner on Jul 28, 2018. It is now read-only.

Commit

Permalink
Merge pull request #473 from Thibaut/tests
Browse files Browse the repository at this point in the history
Add test instructions to the README
  • Loading branch information
dhh committed Mar 1, 2015
2 parents 36046a4 + 0df26d3 commit 6c64f30
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Expand Up @@ -229,6 +229,28 @@ Installation
1. Add `//= require turbolinks` to your Javascript manifest file (usually found at `app/assets/javascripts/application.js`). If your manifest requires both turbolinks and jQuery, make sure turbolinks is listed *after* jQuery.
1. Restart your server and you're now using turbolinks!

Running the tests
-----------------

Ruby:

```
rake test:all
BUNDLE_GEMFILE=Gemfile.rails42 bundle
BUNDLE_GEMFILE=Gemfile.rails42 rake test
```

JavaScript:

```
npm install
cd test
bundle
bundle exec rackup
open http://localhost:9292/javascript/index.html
```

Language Ports
--------------

Expand Down
9 changes: 9 additions & 0 deletions Rakefile
Expand Up @@ -6,3 +6,12 @@ Rake::TestTask.new do |t|
t.warning = true
t.verbose = true
end

namespace :test do
task :all do
%w(rails40 rails41 rails42).each do |gemfile|
sh "BUNDLE_GEMFILE='Gemfile.#{gemfile}' bundle --quiet"
sh "BUNDLE_GEMFILE='Gemfile.#{gemfile}' bundle exec rake test"
end
end
end

0 comments on commit 6c64f30

Please sign in to comment.