Sha256: 1e0ccbbea995cf135522ba00574e2e7a90f56138f61ebd5d5d3e9d96e5e99200
Contents?: true
Size: 769 Bytes
Versions: 5
Compression:
Stored size: 769 Bytes
Contents
require "spec_helper" describe CommonwealthVlrEngine::Notifier do describe "feedback" do before(:each) do @test_params = { :name => "Testy McGee", :email => "testy@example.com", :topic => "image reproduction", :message => "Test message" } @test_feedback_email = Notifier.feedback(@test_params) end it "should create the email" do expect(@test_feedback_email).not_to be_nil end it "should have the right user email in the text" do expect(@test_feedback_email.body.encoded).to include(@test_params[:email]) end it "should have the right receiver email address" do expect(@test_feedback_email.to[0]).to eq(CONTACT_EMAILS['image_requests']) end end end
Version data entries
5 entries across 5 versions & 1 rubygems