File tree Expand file tree Collapse file tree
spec/octocatalog-diff/tests/api/v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 )
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
You can’t perform that action at this time.
0 commit comments