Skip to content

Commit

Permalink
update to no longer need gemfile-lock-path
Browse files Browse the repository at this point in the history
  • Loading branch information
microsoftly committed Sep 10, 2018
1 parent 560691d commit 8bedfaf
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions analyzers/ruby/ruby_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ func TestCustomGemfileLockPath(t *testing.T) {
Name: "test",
Type: pkg.Ruby,
BuildTarget: buildTarget,
Dir: buildTarget,
}

p := filepath.Join("testdata", "Gemfile.lock")

print(p)

gemModule := m
gemModule.Options = map[string]interface{}{
"strategy": "lockfile",
"gemfile-lock-path": filepath.Join("testdata", "Gemfile.lock"),
"strategy": "lockfile",
}
analyzer, err := ruby.New(gemModule)
assert.NoError(t, err)
Expand All @@ -48,8 +52,7 @@ func TestCustomGemfileLockPath(t *testing.T) {
func TestFallbackOnMissingBundler(t *testing.T) {
buildTarget := "testdata"
useLockfileOptions := map[string]interface{}{
"strategy": "lockfile",
"gemfile-lock-path": filepath.Join("testdata", "Gemfile.lock"),
"strategy": "lockfile",
}

useBundlerWithLockfilePathOptions := map[string]interface{}{}
Expand All @@ -58,6 +61,7 @@ func TestFallbackOnMissingBundler(t *testing.T) {
Name: "test",
Type: pkg.Ruby,
BuildTarget: buildTarget,
Dir: buildTarget,
Options: useLockfileOptions,
}

Expand Down

0 comments on commit 8bedfaf

Please sign in to comment.