Skip to content

Commit

Permalink
Merge pull request #141 from petems/dry_up_spec_test
Browse files Browse the repository at this point in the history
Replace code with pre-existing shared_example
  • Loading branch information
Morgan Haskel committed Jan 15, 2015
2 parents 7acd032 + 9280f81 commit be5fc47
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions spec/acceptance/ini_setting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,7 @@
apply_manifest(pp, :catch_changes => true)
end

describe file("#{tmpdir}/ini_setting.ini") do
it { should be_file }
#XXX Solaris 10 doesn't support multi-line grep
it("should contain four = five\n[one]\ntwo = three", :unless => fact('osfamily') == 'Solaris') {
should contain("four = five\n[one]\ntwo = three")
}
end
it_behaves_like 'has_content', "#{tmpdir}/ini_setting.ini", pp, "four = five\n[one]\ntwo = three"
end

context '=> absent for key/value' do
Expand Down

0 comments on commit be5fc47

Please sign in to comment.