1 require "application_system_test_case"
3 class AccountPdDeclarationTest < ApplicationSystemTestCase
5 @user = create(:user, :display_name => "test user")
9 test "show checkbox if no declaration was made" do
10 visit account_pd_declaration_path
12 within_content_body do
13 assert_unchecked_field "I consider my contributions to be in the Public Domain"
17 test "show disabled checkbox if declaration was made" do
18 @user.update(:consider_pd => true)
20 visit account_pd_declaration_path
22 within_content_body do
23 assert_checked_field "I consider my contributions to be in the Public Domain", :disabled => true