Permalink
Browse files

Don't try to be too smart with details

  • Loading branch information...
rsanheim committed Aug 31, 2009
1 parent 1c63caf commit 8cf5ad143991c30b125b76248c0674127df78d05
@@ -22,10 +22,9 @@
it "displays any other details in the hash in the email body" do
notice = {
- :details => {
- :message_id => 'user01-create', :current_user => "Chris Liebing"},
- :environment => { :path => "foo" }
- }
+ :details => { "message_id" => "user01-create", "current_user" => "Chris Liebing" },
+ :environment => { "foo" => "path" }
+ }
Chatterbox::Mailer.create_exception_notification(notice)
expected = <<EOL
Details
@@ -5,7 +5,7 @@ Error Message
Details
-------
<% @details.keys.map(&:to_s).sort.each do |key| -%>
-<%= %[#{key} => #{@details[key.to_sym]}] %>
+<%= %[#{key} => #{@details[key]}] %>
<% end if @details -%>
Backtrace

0 comments on commit 8cf5ad1

Please sign in to comment.