Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #220 from jordi-pivotal/remove-test-app-dependencies
Browse files Browse the repository at this point in the history
Remove test app dependencies
  • Loading branch information
ragaskar committed Jun 13, 2014
2 parents 01c7e6c + 0cd7bb5 commit 869e99a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions spec/jasmine_rails_spec.rb
Expand Up @@ -21,25 +21,17 @@ def bundle_install
temp_dir_before
Dir::chdir @tmp

`rails new rails-example --skip-bundle`
`rails new rails-example --skip-bundle --skip-active-record`
Dir::chdir File.join(@tmp, 'rails-example')

base = File.absolute_path(File.join(__FILE__, '../..'))

# sqlite3 v 1.3.9 is broken on rbx, so restrict to 1.3.8 for now until they fix it.
# see: https://github.com/sparklemotion/sqlite3-ruby/issues/122
#
# execjs v2.2.0 is broken in rbx, locking the version to 2.0.2 for now
# see https://github.com/sstephenson/execjs/issues/148

file_contents = File.read('Gemfile')

open('Gemfile', 'w') { |f|
f.puts file_contents.sub("gem 'sqlite3'", "gem 'sqlite3', '1.3.8'")
open('Gemfile', 'a') { |f|
f.puts "gem 'jasmine', :path => '#{base}'"
f.puts "gem 'jasmine-core', :github => 'pivotal/jasmine'"
f.puts "gem 'rubysl', :platform => :rbx"
f.puts "gem 'racc', :platform => :rbx"
f.puts "gem 'thin'" unless RUBY_PLATFORM == 'java'
f.puts "gem 'angularjs-rails'"
f.puts "gem 'execjs', '2.0.2'"
Expand Down

0 comments on commit 869e99a

Please sign in to comment.