Skip to content

Commit

Permalink
Install dummy rails_app dependencies before running rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrioux authored and northox committed Dec 1, 2018
1 parent 107230f commit 3fb0a23
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .rspec
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--exclude-pattern "spec/dummy/flor/spec/**/*_spec.rb,spec/dummy/flor/spec/*,spec/dummy/flack/spec/**/*_spec.rb" -fd
--exclude-pattern "spec/dummy/flor/spec/**/*_spec.rb,spec/dummy/flor/spec/*,spec/dummy/flack/spec/**/*_spec.rb,spec/dummy/rails_app/vendor/**/*" -fd
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ rvm:
- 2.1

before_script:
- bundle exec rake app:server:rails:install_dep
- bundle exec rake app:server:flack:install
- bundle exec rake app:server:flack:start

Expand Down
11 changes: 11 additions & 0 deletions spec/dummy/rails_app/lib/tasks/server.rake
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ namespace :server do
Rake::Task["server:rails:stop"].invoke
Rake::Task["server:rails:start"].invoke
end

desc "Install rails deps"
task :install_dep do
chdir "spec/dummy/rails_app" do
Bundler.with_clean_env do
sh "bundle install"
end
end
end


end

namespace :flack do
Expand Down

0 comments on commit 3fb0a23

Please sign in to comment.