spec/ci.rb in axlsx_rails-0.4.0 vs spec/ci.rb in axlsx_rails-0.5.0
- old
+ new
@@ -1,7 +1,10 @@
#!/usr/bin/env ruby
-if ENV['RAILS_VERSION'] =~ /^4/
+if ENV['RAILS_VERSION'] =~ /^5/
+ puts "Testing Rails 5"
+ exit system('cd spec/dummy_5 && bundle install --without debug && bundle exec rake db:create && bundle exec rake db:migrate && cd ../../ && bundle exec rspec spec')
+elsif ENV['RAILS_VERSION'] =~ /^4/
puts "Testing Rails 4"
exit system('cd spec/dummy_4 && bundle install --without debug && bundle exec rake db:create && bundle exec rake db:migrate && cd ../../ && bundle exec rspec spec')
else
puts "Testing Rails 3"
exit system('cd spec/dummy && bundle install --without debug && bundle exec rake db:create && bundle exec rake db:migrate && cd ../../ && bundle exec rspec spec')