Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Something sarcastic about downloading things from the internet during a
test
- Loading branch information
Showing
4 changed files
with
32 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
module BundlerPreHelper | |||
def bundler | |||
fixture 'bundler-1.0.21.gem' | |||
end | |||
|
|||
def bundler_pre | |||
fixture 'bundler-1.1.rc.gem' | |||
end | |||
|
|||
def gem_install(path) | |||
run_simple("gem install #{path} --no-ri --no-rdoc") | |||
end | |||
|
|||
def gem_uninstall(path) | |||
run_simple("gem uninstall #{path}") | |||
end | |||
end | |||
|
|||
Before('@bundler-pre') do | |||
extend(BundlerPreHelper) | |||
gem_uninstall bundler | |||
gem_install bundler_pre | |||
end | |||
|
|||
After('@bundler-pre') do | |||
gem_uninstall bundler_pre | |||
gem_install bundler | |||
end |
Binary file not shown.
Binary file not shown.