Demo entry 6496024

12312312312312

   

Submitted by Condori morales jeremy on May 30, 2017 at 05:27
Language: Python. Code size: 474 Bytes.

context Notifications::Emails::Message do
  setup do
    @comment = Issue.make
    @settings = Notifications::Settings.new(-1)
    @message = Notifications::Emails::Message.new(
                 @comment, @settings)
  end
  test "#to uses global email" do
    @settings.email :global, 'bkeepers@github.com'
    assert_equal 'bkeepers@github.com', @message.to
  end
  test "#body includes comment body" do
    assert_match @comment.body, @message.body
  end
end

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).