Skip to content

Commit ac4e999

Browse files
Merge pull request #94 from gavinrogers/gavin_lint
Fixed tests
2 parents 2093aa3 + 6c1973f commit ac4e999

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spec/classes/puppet_agent_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@
9393
}
9494
end
9595

96-
it{
97-
expect{ subject }.to raise_error()
96+
it {
97+
should compile.and_raise_error(/puppet has attribute use_srv_records set but has srv_domain unset/)
9898
}
9999
end
100100

@@ -252,8 +252,8 @@
252252
}
253253
end
254254

255-
it{
256-
expect{ subject }.to raise_error()
255+
it {
256+
should compile.and_raise_error(/puppet has attribute use_srv_records set but has srv_domain unset/)
257257
}
258258
end
259259

spec/classes/puppet_repo_puppetlabs_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
end
6565
it 'should fail for unsupported os families' do
6666
expect do
67-
subject
68-
end.to raise_error(Puppet::Error, /Unsupported osfamily FreeBSD/)
67+
should compile.and_raise_error(/Unsupported osfamily FreeBSD/)
68+
end
6969
end
7070
end
7171
end

0 commit comments

Comments
 (0)