Skip to content

Commit

Permalink
Merge pull request #634 from cyberious/ResourceTest
Browse files Browse the repository at this point in the history
MODULES-1520 add test to assert it does not break
  • Loading branch information
Morgan Haskel committed Jan 2, 2015
2 parents 8d7ab1d + d9d0271 commit 23c192d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/acceptance/types/mysql_user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,14 @@ class { 'mysql::server': }
end
end
end
context 'using resource should throw no errors' do
describe 'find users' do
it {
on default, puppet('resource mysql_user'), {:catch_failures => true} do |r|
expect(r.stdout).to_not match(/Error:/)
expect(r.stdout).to_not match(/must be properly quoted, invalid character:/)
end
}
end
end
end

0 comments on commit 23c192d

Please sign in to comment.