diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-14 12:51:18 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-14 12:51:18 -0600 |
| commit | 7ca5e094766b70fe8a8783c0c2f33fdeba46d2c5 (patch) | |
| tree | f8c847639a68305b8546f31003faf63d04735984 /spec/integration/go | |
| parent | bae02b6ae73dda47dc86590b73c21a85bb7273a5 (diff) | |
bundle exec rubocop -a
Diffstat (limited to 'spec/integration/go')
| -rw-r--r-- | spec/integration/go/modules_spec.rb | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/spec/integration/go/modules_spec.rb b/spec/integration/go/modules_spec.rb index 143d8ea..c70b48b 100644 --- a/spec/integration/go/modules_spec.rb +++ b/spec/integration/go/modules_spec.rb @@ -1,9 +1,11 @@ +# frozen_string_literal: true + require 'spec_helper' -RSpec.describe "modules" do - include_examples "each report version", "go", "modules" +RSpec.describe 'modules' do + include_examples 'each report version', 'go', 'modules' - context "when scanning a customers go.mod and go.sum files" do + context 'when scanning a customers go.mod and go.sum files' do let(:report) { runner.scan } before do @@ -17,19 +19,19 @@ RSpec.describe "modules" do specify do expect(report.dependency_names).to match_array([ - "github.com/davecgh/go-spew", - "github.com/dimfeld/httptreemux/v5", - "github.com/go-logfmt/logfmt", - "github.com/golang/protobuf", - "github.com/google/uuid", - "github.com/pmezard/go-difflib", - "github.com/stretchr/objx", - "golang.org/x/net", - "golang.org/x/oauth2", - "google.golang.org/appengine", - "gopkg.in/yaml.v2", - 'github.com/stretchr/testify' - ]) + 'github.com/davecgh/go-spew', + 'github.com/dimfeld/httptreemux/v5', + 'github.com/go-logfmt/logfmt', + 'github.com/golang/protobuf', + 'github.com/google/uuid', + 'github.com/pmezard/go-difflib', + 'github.com/stretchr/objx', + 'golang.org/x/net', + 'golang.org/x/oauth2', + 'google.golang.org/appengine', + 'gopkg.in/yaml.v2', + 'github.com/stretchr/testify' + ]) end specify { expect(report.licenses_for('github.com/dimfeld/httptreemux/v5')).to match_array(['MIT']) } @@ -39,7 +41,7 @@ RSpec.describe "modules" do specify { expect(report.licenses_for('golang.org/x/oauth2')).to match_array(['BSD-3-Clause']) } end - context "when scanning the `gitaly` project" do + context 'when scanning the `gitaly` project' do let(:report) { runner.scan } before do |
