3 class ReportDiaryEntryTest < Capybara::Rails::TestCase
5 create(:language, :code => "en")
6 @diary_entry = create(:diary_entry)
10 sign_in_as(create(:user))
11 visit diary_entry_path(@diary_entry.user.display_name, @diary_entry)
12 assert page.has_content? @diary_entry.title
15 assert page.has_content? "Report"
16 assert page.has_content? I18n.t("issues.new.disclaimer.intro")
18 choose "report_type__SPAM" # FIXME: use label text when the radio button labels are working
19 fill_in "report_details", :with => "This is advertising"
20 click_on "Save changes"
22 assert page.has_content? "Your report has been registered sucessfully"