Skip to content

Commit 0f5e49f

Browse files
author
Kevin Paulisse
committed
Ruby variability, accept either error message
1 parent f6b5483 commit 0f5e49f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

spec/octocatalog-diff/tests/api/v1/config_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
let(:filename) { OctocatalogDiff::Spec.fixture_path('cli-configs/not-class.rb') }
181181

182182
it 'should raise ConfigurationFileContentError' do
183-
pattern = Regexp.new('must define OctocatalogDiff::Config!')
183+
pattern = Regexp.new('must define OctocatalogDiff::Config')
184184
expect do
185185
described_class.load_config_file(filename, @logger)
186186
end.to raise_error(OctocatalogDiff::Errors::ConfigurationFileContentError, pattern)
@@ -194,8 +194,8 @@
194194
exception = exc
195195
end
196196
expect(exception).to be_a_kind_of(OctocatalogDiff::Errors::ConfigurationFileContentError)
197-
expect(exception.message).to eq('Configuration must define OctocatalogDiff::Config!')
198-
expect(@logger_str.string).to match(/Configuration must define OctocatalogDiff::Config!/)
197+
expect(exception.message).to match(/Configuration must define OctocatalogDiff::Config/)
198+
expect(@logger_str.string).to match(/Configuration must define OctocatalogDiff::Config/)
199199
end
200200
end
201201

0 commit comments

Comments
 (0)