Sha256: 04750ed339bb7c6a736d558d253cd604a11cdff33ce2eab6e0def806883167b4

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), *%w[.. .. .. example_helper]))
require 'chatterbox'

describe Chatterbox::EmailConsumer do

  
  it "displays environment vars sorted" do
    data = {
      :environment => {
        "PATH" => "/usr/bin",
        "PS1" => "$",
        "TMPDIR" => "/tmp"
      }
    }
    expected = <<EOL
PATH => /usr/bin
PS1 => $
TMPDIR => /tmp
EOL
    mail = Chatterbox::Mailer.create_exception_notification(data)
    mail.body.should include(expected.strip)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
relevance-chatterbox-0.2.0 examples/lib/chatterbox/consumers/email_consumer_example.rb