Skip to content

Commit

Permalink
fix new settings resoultion and give preference to $PWD/settings.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Dec 1, 2015
1 parent dfcd990 commit ec92013
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
c.jarfile.must_equal File.join( basedir, 'spec', 'Jarfile' )
c.gemfile.must_equal File.join( basedir, 'spec', 'Gemfile' )
c.skip.must_equal nil
c.settings.must_equal "./.m2/settings.xml"
c.settings.must_equal File.expand_path("settings.xml")
c.offline.must_equal false
c.work_dir.must_equal File.join( basedir, 'spec','pkg' )
c.vendor_dir.must_equal File.join( basedir, 'spec', 'vendor', 'jars' )
Expand Down Expand Up @@ -138,7 +138,8 @@
c.jarfile.must_equal File.join( pdir, 'JarFile' )
c.gemfile.must_equal File.join( pdir, 'GemFile' )
c.skip.must_equal false
c.settings.must_equal File.join( pdir, 'Settings.xml' )
# names are case insensitive
c.settings.downcase.must_equal File.join( pdir, 'Settings.xml' ).downcase
c.offline.must_equal true
c.work_dir.must_equal File.join( pdir, 'pkg/work' )
c.vendor_dir.must_equal File.join( pdir, 'vendor/localjars' )
Expand Down

0 comments on commit ec92013

Please sign in to comment.