File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ source 'https://rubygems.org'
55ruby '>= 3.2' , '< 3.5'
66
77group :test , :development do
8+ gem 'diffy' , '~> 3.4'
89 gem 'heroku_hatchet'
910 gem 'java-properties'
1011 # Work around https://github.com/excon/excon/issues/860
Original file line number Diff line number Diff line change 44 ast (2.4.3 )
55 base64 (0.3.0 )
66 diff-lcs (1.6.2 )
7+ diffy (3.4.4 )
78 erubis (2.7.0 )
89 excon (1.2.7 )
910 logger
@@ -82,6 +83,7 @@ PLATFORMS
8283 ruby
8384
8485DEPENDENCIES
86+ diffy (~> 3.4 )
8587 heroku_hatchet
8688 java-properties
8789 logger
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33require_relative 'spec_helper'
4+ require 'diffy'
45
56RSpec . describe 'Maven buildpack' do
67 it 'runs Maven wrapper instead of installing Maven when possible' do
3738 app . deploy do
3839 expect ( clean_output ( app . output ) ) . to include ( <<~OUTPUT )
3940 remote: -----> Installing Maven #{ UNKNOWN_MAVEN_VERSION } ...
40- remote:
41+ remote:
4142 remote: ! ERROR: You have defined an unsupported Maven version in the system.properties file.
4243 remote: !
4344 remote: ! The default supported version is #{ DEFAULT_MAVEN_VERSION }
44- remote:
45+ remote:
4546 remote: ! Push rejected, failed to compile Java app.
4647 OUTPUT
4748 end
7273 app . deploy do
7374 expect ( clean_output ( app . output ) ) . to include ( <<~OUTPUT )
7475 remote: -----> Installing Maven #{ UNKNOWN_MAVEN_VERSION } ...
76+ remote:
7577 remote: ! ERROR: You have defined an unsupported Maven version in the system.properties file.
7678 remote: !
7779 remote: ! The default supported version is #{ DEFAULT_MAVEN_VERSION }
You can’t perform that action at this time.
0 commit comments