Permalink
Browse files

Clean up

  • Loading branch information...
1 parent 5a25b70 commit e376890395781860598cbf8feb81e2b7e488b9e7 @BanzaiMan BanzaiMan committed Feb 5, 2013
Showing with 4 additions and 5 deletions.
  1. +4 −5 spec/rhc/helpers_spec.rb
@@ -335,18 +335,17 @@ def options
context "when hosts file has the desired host" do
it "does not raise error" do
- puts subject.hosts_file_contains?(existent_host)
- lambda {
+ expect {
subject.hosts_file_contains?(existent_host)
- }.should_not raise_error
+ }.to_not raise_error
end
end
context "when hosts file does not have the desired host" do
it "does not raise error" do
- lambda {
+ expect {
subject.hosts_file_contains?(nonexistent_host)
- }.should_not raise_error
+ }.to_not raise_error
end
end
end

0 comments on commit e376890

Please sign in to comment.