Skip to content
This repository was archived by the owner on Feb 13, 2020. It is now read-only.

Commit 29029d9

Browse files
committed
Correct test running for subtests.
Re-added connect tests to Rakefile. Fixed changes to Bundler environment variables to remove them entirely. Added an explicit bundle installation before each test.
1 parent 20ba699 commit 29029d9

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

Rakefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ namespace :spec do
2828
end
2929

3030
task :connect do
31-
STDERR.puts "Connect spec is busted, and might have been for a while"
32-
# desc "Ensure sauce-connect is starting correctly"
33-
# ensure_rvm!
34-
# sh "bash --login -c \"cd spec/helpers && ./run_in_own_rvm.sh ./integration/connect\""
31+
# STDERR.puts "Connect spec is busted, and might have been for a while"
32+
desc "Ensure sauce-connect is starting correctly"
33+
ensure_rvm!
34+
sh "bash --login -c \"cd spec/helpers && ./run_in_own_rvm.sh ./integration/connect\""
3535
end
3636
end
3737

spec/helpers/run_in_own_rvm.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
#!/bin/bash --login
1+
#!/bin/bash
22

33
# Reset the environment and allow RVM to create its own
4-
export BUNDLE_GEMFILE=
5-
export RUBYOPT=
4+
unset BUNDLE_GEMFILE
5+
unset BUNDLE_BIN_PATH
6+
unset RUBYOPT
67

78
echo "Running tests in" $1
89
cd ../$1 && ./run-test.sh

spec/integration/connect/run-test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#!/bin/bash -xe
2-
1+
#!/bin/bash --login
2+
gem install bundler
33
RAKE="bundle exec rake"
44

55
bundle install

spec/integration/rspec-capybara/run-test.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash --login
2+
gem install bundler
23
RAKE="bundle exec rake"
34

45
bundle install

spec/integration/rspec/run-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash --login
2-
rvm current
2+
gem install bundler
33

44
RAKE="bundle exec rake"
55
bundle update

spec/integration/testunit/run-test.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash --login
2+
gem install bundler
23
RAKE="bundle exec rake"
34

45
bundle install

0 commit comments

Comments
 (0)