Skip to content

Commit

Permalink
update spec tests for CHEF-2161
Browse files Browse the repository at this point in the history
  • Loading branch information
btm committed Jun 8, 2012
1 parent cae2111 commit a4d10c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/mixlib/log/formatter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
it "should return a formatted string with call" do
time = Time.new
Mixlib::Log::Formatter.show_time = true
@formatter.call("monkey", time, "test", "mos def").should == "[#{time.rfc2822}] monkey: mos def\n"
@formatter.call("monkey", time, "test", "mos def").should == "[#{time.iso8601}] monkey: mos def\n"
end

it "should allow you to turn the time on and off in the output" do
Mixlib::Log::Formatter.show_time = false
@formatter.call("monkey", Time.new, "test", "mos def").should == "monkey: mos def\n"
end

end
end

0 comments on commit a4d10c0

Please sign in to comment.