spec/cfoundry/uaaclient_spec.rb in cfoundry-4.7.1 vs spec/cfoundry/uaaclient_spec.rb in cfoundry-4.7.2.rc1
- old
+ new
@@ -373,9 +373,19 @@
it "has logging level 0 if #trace is true" do
uaa.trace = true
expect(uaa.send(:token_issuer).logger.level).to eq -1
end
+ it "sets the log device to STDERR if #trace is true" do
+ uaa.trace = true
+ expect(uaa.send(:token_issuer).logger.send(:instance_variable_get, :@logdev).dev).to eq STDERR
+ end
+
+ it "sets the log device to STDOUT if #trace is false" do
+ uaa.trace = false
+ expect(uaa.send(:token_issuer).logger.send(:instance_variable_get, :@logdev).dev).to eq STDOUT
+ end
+
it "has logging level 1 if #trace is false" do
uaa.trace = false
expect(uaa.send(:token_issuer).logger.level).to eq 1
end