summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-11-18 11:57:01 -0700
committermo khan <mo.khan@gmail.com>2020-11-18 12:27:36 -0700
commit7e522b58a2859f60b682fce4bd2c6a2d20238468 (patch)
tree756e978f5f119ca7ceb641e7ee54a5491f8c092e /spec/unit
parent8ac6eb1827c032692c7df5cefaa15ec7272952dc (diff)
feat: rebuild index during pull command
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/cli/pull_spec.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/spec/unit/cli/pull_spec.rb b/spec/unit/cli/pull_spec.rb
index 9a3d8e8..dbd284a 100644
--- a/spec/unit/cli/pull_spec.rb
+++ b/spec/unit/cli/pull_spec.rb
@@ -11,14 +11,7 @@ RSpec.describe Spandx::Cli::Commands::Pull do
it 'executes `spandx pull` command successfully' do
subject.execute(output: output)
- expected = <<~OUTPUT
- Updating https://github.com/spandx/cache.git...
- Updating https://github.com/spandx/rubygems-cache.git...
- Updating https://github.com/spdx/license-list-data.git...
- OK
- OUTPUT
-
- expect(output.string).to eq(expected)
+ expect(output.string).to eq(fixture_file('pull.expected').read)
end
end
end