spec/unit/generators/definition_generator_spec.rb in puppet-retrospec-1.5.0 vs spec/unit/generators/definition_generator_spec.rb in puppet-retrospec-1.6.0

- old
+ new

@@ -64,20 +64,20 @@ # if the test returns more than the expected count there is an extra comma # although technically it doesn't matter end it 'should have resources' do - resources = ["\n it do\n is_expected.to contain_notify(\"hello\")\n end\n "] + resources = ["\n it do\n is_expected.to contain_notify('hello')\n end "] expect(context.resources).to eq(resources) end describe 'content' do let(:data) do - /contain_notify\("hello"\)/ + /contain_notify\('hello'\)/ end it 'should generate the content' do expect(spec_file_contents).to match(data) - expect(spec_file_contents).to match(/#:one => "one_value",/) + expect(spec_file_contents).to match(/# one: "one_value",/) end end describe 'spec files' do let(:generated_files) do