spec/bin_spec.rb in licensee-8.9.2 vs spec/bin_spec.rb in licensee-9.0.0.beta.1
- old
+ new
@@ -23,18 +23,25 @@
it 'outputs the hash' do
expect(stdout).to match('d64f3bb4282a97b37454b5bb96a8a264a3363dc3')
end
it 'outputs the attribution' do
- expect(stdout).to match('2014-2016 Ben Balter')
+ expect(stdout).to match('2014-2017 Ben Balter')
end
it 'outputs the confidence' do
expect(stdout).to match('Confidence: 100.00%')
+ expect(stdout).to match('Confidence: 90.00%')
end
it 'outputs the method' do
- expect(stdout).to match('Method: Licensee::Matchers::Exact')
+ expect(stdout).to match('Matcher: Licensee::Matchers::Exact')
+ expect(stdout).to match('Matcher: Licensee::Matchers::Gemspec')
+ end
+
+ it 'outputs the matched files' do
+ matched_files = 'Matched files: ["LICENSE.md", "licensee.gemspec"]'
+ expect(stdout).to include(matched_files)
end
end
context 'when given a folder path' do
let(:arguments) { [project_root] }