1 require "application_system_test_case"
3 class DiaryEntrySystemTest < ApplicationSystemTestCase
5 create(:language, :code => "en")
6 @diary_entry = create(:diary_entry)
9 test "reply to diary entry should prefill the message subject" do
10 sign_in_as(create(:user))
13 click_on "Reply to this entry"
15 assert page.has_content? "Send a new message"
16 assert_equal "Re: #{@diary_entry.title}", page.find_field("Subject").value