mirror of
https://github.com/puppetlabs/vmpooler-provider-ec2.git
synced 2026-01-26 02:28:40 -05:00
puts for spec logging
This commit is contained in:
parent
4e85886da4
commit
28c5331e38
1 changed files with 3 additions and 1 deletions
|
|
@ -10,7 +10,9 @@ end
|
||||||
# Mock an object which represents a Logger. This stops the proliferation
|
# Mock an object which represents a Logger. This stops the proliferation
|
||||||
# of allow(logger).to .... expectations in tests.
|
# of allow(logger).to .... expectations in tests.
|
||||||
class MockLogger
|
class MockLogger
|
||||||
def log(_level, string); end
|
def log(_level, string);
|
||||||
|
puts "#{string}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def expect_json(ok = true, http = 200)
|
def expect_json(ok = true, http = 200)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue