Hi, I tried to run the tests locally (following the readme but failed).
I fixed an issue with a typo in binstubs, see #55
But now my output is:
$ git diff
diff --git a/test/setup_railsapp b/test/setup_railsapp
index 8cc1f49..bfef146 100755
--- a/test/setup_railsapp
+++ b/test/setup_railsapp
@@ -78,8 +78,8 @@ if [ ! -f $rails ]; then
fi
if [ ! -f $rake ]; then
- echo "Running bundle --binstub rake ..."
- if ! bundle --binstub rake || [ ! -f $rake ]; then
+ echo "Running bundle --binstubs rake ..."
+ if ! bundle --binstubs rake || [ ! -f $rake ]; then
echo "Test aborted (unable to create $rake)"
exit 2
fi
$ test/test_with_railsapp
== SELECT GEMFILE ==
Please select the gemfile for the required rails series:
4.0
4.1
4.2
5.0
edge
Enter choice (or q to quit): 5.0
Add as middleware [N/y] : N
Setting RAILS_ENV=test RACK_ENV=test
Detected user installed rvm
Checking required commands exist:
/bin/bash
/home/michael/.rvm/rubies/ruby-2.2.5/bin/gem
/bin/egrep
/bin/ls
/usr/bin/tail
/bin/kill
/usr/bin/find
/bin/cpio
/home/michael/.rvm/rubies/ruby-2.2.5/bin/ruby
/home/michael/.rvm/rubies/ruby-2.2.5/bin/gem
Using rails=rails, rake=rake
/home/michael/.rvm/gems/ruby-2.2.5/bin/bundle
Bundler is installed
Running bundle with BUNDLE_GEMFILE=/home/michael/tmp/health_check/test/rails_5.0.gemfile ...
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 11.3.0
Using concurrent-ruby 1.0.2
Using i18n 0.7.0
Using minitest 5.10.1
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 2.0.1
Using nio4r 1.2.1
Using websocket-extensions 0.1.2
Using mime-types-data 3.2016.0521
Using arel 7.1.4
Using aws-sigv4 1.0.0
Using jmespath 1.3.1
Using bundler 1.13.1
Using connection_pool 2.2.1
Using method_source 0.8.2
Using mono_logger 1.1.0
Using multi_json 1.12.1
Using thor 0.19.4
Using redis 3.3.2
Using shoulda-context 1.2.2
Using sqlite3 1.3.12
Using tzinfo 1.2.2
Using nokogiri 1.6.8.1
Using rack-test 0.6.3
Using rack-protection 1.5.3
Using sprockets 3.7.0
Using sinatra 1.0
Using vegas 0.1.11
Using websocket-driver 0.6.4
Using mime-types 3.1
Using aws-sdk-core 2.6.32
Using redis-namespace 1.5.2
Using activesupport 5.0.0.1
Using loofah 2.0.3
Using sidekiq 4.2.7
Using mail 2.6.4
Using aws-sdk-resources 2.6.32
Using resque 1.26.0
Using rails-dom-testing 2.0.1
Using globalid 0.3.7
Using activemodel 5.0.0.1
Using shoulda-matchers 2.8.0
Using rails-html-sanitizer 1.0.3
Using aws-sdk 2.6.32
Using activejob 5.0.0.1
Using activerecord 5.0.0.1
Using shoulda 3.5.0
Using actionview 5.0.0.1
Using actionpack 5.0.0.1
Using actioncable 5.0.0.1
Using actionmailer 5.0.0.1
Using railties 5.0.0.1
Using sprockets-rails 3.2.0
Using rails 5.0.0.1
Bundle complete! 8 Gemfile dependencies, 57 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Checking /home/michael/tmp/health_check/test/bin/rails is present ...
rdoc (or a dependency) not available. Install it with: gem install rdoc
rake aborted!
Don't know how to build task 'rails:update:bin' (see --tasks)
/home/michael/.rvm/gems/ruby-2.2.5/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
/home/michael/.rvm/gems/ruby-2.2.5/bin/ruby_executable_hooks:15:in `eval'
/home/michael/.rvm/gems/ruby-2.2.5/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
(ignored rake rails:update:bin exit status)
Running bundle --binstubs rake ...
Using rake 11.3.0
Using concurrent-ruby 1.0.2
Using i18n 0.7.0
Using minitest 5.10.1
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 2.0.1
Using nio4r 1.2.1
Using websocket-extensions 0.1.2
Using mime-types-data 3.2016.0521
Using arel 7.1.4
Using aws-sigv4 1.0.0
Using jmespath 1.3.1
Using connection_pool 2.2.1
Using method_source 0.8.2
Using mono_logger 1.1.0
Using multi_json 1.12.1
Using bundler 1.13.1
Using thor 0.19.4
Using redis 3.3.2
Using shoulda-context 1.2.2
Using sqlite3 1.3.12
Using tzinfo 1.2.2
Using nokogiri 1.6.8.1
Using rack-test 0.6.3
Using rack-protection 1.5.3
Using sprockets 3.7.0
Using sinatra 1.0
Using vegas 0.1.11
Using websocket-driver 0.6.4
Using mime-types 3.1
Using aws-sdk-core 2.6.32
Using redis-namespace 1.5.2
Using activesupport 5.0.0.1
Using loofah 2.0.3
Using sidekiq 4.2.7
Using mail 2.6.4
Using aws-sdk-resources 2.6.32
Using resque 1.26.0
Using rails-dom-testing 2.0.1
Using globalid 0.3.7
Using activemodel 5.0.0.1
Using shoulda-matchers 2.8.0
Using rails-html-sanitizer 1.0.3
Using aws-sdk 2.6.32
Using activejob 5.0.0.1
Using activerecord 5.0.0.1
Using shoulda 3.5.0
Using actionview 5.0.0.1
Using actionpack 5.0.0.1
Using actioncable 5.0.0.1
Using actionmailer 5.0.0.1
Using railties 5.0.0.1
Using sprockets-rails 3.2.0
Using rails 5.0.0.1
Bundle complete! 8 Gemfile dependencies, 57 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Test aborted (unable to create /home/michael/tmp/health_check/test/bin/rake)
Hi, I tried to run the tests locally (following the readme but failed).
I fixed an issue with a typo in binstubs, see #55
But now my output is: