Sha256: 6ad91faca4c5d53fc53e19fcd8b9c51a3190cfcab04ab2e105381a9c1f554587
Contents?: true
Size: 726 Bytes
Versions: 4
Compression:
Stored size: 726 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/helper') describe Goatmail::App do before do Mail.new { from 'foo@example.com' to 'bar@example.com' subject '<h1>Hello</h1>' body 'World!' }.deliver! end it 'can display index' do visit '/' assert_equal page.status_code, 200 assert page.has_content? 'Hello' within_frame 'mail' do assert ! page.has_content?('World!') end end it 'can display message' do visit '/' click_link 'Hello' within_frame 'mail' do assert page.has_content? 'World!' end end it 'subject of the message are escaped' do visit '/' assert page.has_content? '<h1>Hello</h1>' end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
goatmail-1.2.0 | test/test_app.rb |
goatmail-1.1.1 | test/test_app.rb |
goatmail-1.1.0 | test/test_app.rb |
goatmail-1.0.0 | test/test_app.rb |