Skip to content

Commit 321a2e7

Browse files
committed
install the bundle in rspec-rails dir instead of rails dir
1 parent b009268 commit 321a2e7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Rakefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,20 @@ namespace :rails do
5858
desc "clone the rails repo"
5959
task :clone do
6060
mkdir 'vendor' unless File.directory?('vendor')
61+
install_bundle = false
6162
unless File.directory?('vendor/arel')
63+
install_bundle = true
6264
Dir.chdir('vendor') do
6365
sh "git clone git://github.com/rails/arel"
6466
end
6567
end
6668
unless File.directory?('vendor/rails')
69+
install_bundle = true
6770
Dir.chdir('vendor') do
6871
sh "git clone git://github.com/rails/rails"
6972
end
7073
end
71-
unless File.exist?('vendor/rails/Gemfile.lock')
72-
Dir.chdir('vendor/rails') do
73-
sh "bundle install"
74-
end
75-
end
74+
sh "bundle install" if install_bundle
7675
end
7776

7877
desc "update the rails repo"
@@ -84,8 +83,8 @@ namespace :rails do
8483
Dir.chdir('vendor/rails') do
8584
sh "git checkout master"
8685
sh "git pull"
87-
sh "bundle install"
8886
end
87+
sh "bundle install"
8988
end
9089
end
9190

0 commit comments

Comments
 (0)