Skip to content

Commit

Permalink
Fix test ruby apps for new version of buildpack (#2419)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Fuller authored May 13, 2023
1 parent 325af3c commit 5f0c8df
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion integration/assets/go_calls_ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
source 'https://rubygems.org'
ruby '~> 2.7.0' #TODO: Remove the ruby version once bundler issue(https://github.com/rubygems/rubygems/issues/6280) is solved
ruby '~> 3.0'
2 changes: 0 additions & 2 deletions integration/assets/go_calls_ruby/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ PLATFORMS

DEPENDENCIES

BUNDLED WITH
2.2.27
22 changes: 12 additions & 10 deletions integration/helpers/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,28 +145,30 @@ console: bundle exec irb`,
//TODO: Remove the ruby version once bundler issue(https://github.com/rubygems/rubygems/issues/6280)
// is solved
err = ioutil.WriteFile(filepath.Join(dir, "Gemfile"), []byte(`source 'http://rubygems.org'
ruby '~> 2.7.0'
gem 'irb'`,
ruby '~> 3.0'
gem 'irb'
gem 'webrick'`,
), 0666)
Expect(err).ToNot(HaveOccurred())

err = ioutil.WriteFile(filepath.Join(dir, "Gemfile.lock"), []byte(`GEM
err = ioutil.WriteFile(filepath.Join(dir, "Gemfile.lock"), []byte(`
GEM
remote: http://rubygems.org/
specs:
io-console (0.5.6)
irb (1.2.4)
reline (>= 0.0.1)
reline (0.1.4)
io-console (0.6.0)
irb (1.6.4)
reline (>= 0.3.0)
reline (0.3.3)
io-console (~> 0.5)
webrick (1.8.1)
PLATFORMS
ruby
DEPENDENCIES
irb
BUNDLED WITH
2.1.4`,
webrick
`,
), 0666)
Expect(err).ToNot(HaveOccurred())

Expand Down

0 comments on commit 5f0c8df

Please sign in to comment.