Skip to content

Commit 833b021

Browse files
Merge pull request #149 from ekohl/drop-collection_matchers-dependency
Drop rspec-collection_matchers dependency
2 parents 9235a89 + 1fc39b1 commit 833b021

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1035
-1033
lines changed

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ gemspec
55
group :test do
66
gem 'rake'
77
gem 'rspec-its', '~> 1.0'
8-
gem 'rspec-collection_matchers', '~> 1.0'
98

109
gem 'rspec', '~> 3.0'
1110
gem 'json'

spec/spec_helper.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
require 'puppet-lint'
1414
require 'rspec/its'
15-
require 'rspec/collection_matchers'
1615
begin
1716
require 'rspec/json_expectations'
1817
rescue LoadError, SyntaxError

spec/unit/puppet-lint/checks_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
end
3232

3333
it 'creates a syntax error problem for the file' do
34-
expect(instance.problems).to have(1).problem
34+
expect(instance.problems.size).to eq(1)
3535
expect(instance.problems.first).to include(
3636
kind: :error,
3737
check: :syntax,
@@ -53,7 +53,7 @@
5353
end
5454

5555
it 'creates a syntax error problem for the file' do
56-
expect(instance.problems).to have(1).problem
56+
expect(instance.problems.size).to eq(1)
5757
expect(instance.problems.first).to include(
5858
kind: :error,
5959
check: :syntax,

spec/unit/puppet-lint/ignore_overrides_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
end
1414

1515
it 'detects three problems' do
16-
expect(problems).to have(3).problems
16+
expect(problems.size).to eq(3)
1717
end
1818

1919
it 'has two warnings' do
@@ -36,7 +36,7 @@
3636
end
3737

3838
it 'detects three problems' do
39-
expect(problems).to have(3).problems
39+
expect(problems.size).to eq(3)
4040
end
4141

4242
it 'has two warnings' do
@@ -62,7 +62,7 @@
6262
end
6363

6464
it 'detects four problems' do
65-
expect(problems).to have(4).problems
65+
expect(problems.size).to eq(4)
6666
end
6767

6868
it 'has two warnings' do
@@ -89,7 +89,7 @@
8989
end
9090

9191
it 'detects four problems' do
92-
expect(problems).to have(4).problems
92+
expect(problems.size).to eq(4)
9393
end
9494

9595
it 'has two warnings' do
@@ -107,7 +107,7 @@
107107
let(:code) { '"true" # lint:ignore:quoted_booleans lint:ignore:double_quoted_string a reason' }
108108

109109
it 'detects 1 problems' do
110-
expect(problems).to have(1).problems
110+
expect(problems.size).to eq(1)
111111
end
112112

113113
it 'has one ignored problems' do
@@ -129,7 +129,7 @@
129129
end
130130

131131
it 'detects 2 problems' do
132-
expect(problems).to have(2).problems
132+
expect(problems.size).to eq(2)
133133
end
134134

135135
it 'ignores both problems' do

0 commit comments

Comments
 (0)