diff options
author | jessib <jessib@riseup.net> | 2013-12-02 10:17:19 -0800 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-12-02 10:17:19 -0800 |
commit | 8de6f143e53af5287b41913dcf3c7969f452fbc9 (patch) | |
tree | 6a311eb5cf4c20fa2053022ca9a45a92f0502f87 /users/test/integration/browser | |
parent | b75f8781bb55557f13a9a4ae48fc45e5d6f1ee86 (diff) | |
parent | dade6497424a869db5f1dfb030f88f4711278b81 (diff) |
Merge pull request #118 from azul/feature/validate-pgp-keys
Feature/validate pgp keys
Diffstat (limited to 'users/test/integration/browser')
-rw-r--r-- | users/test/integration/browser/account_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/test/integration/browser/account_test.rb b/users/test/integration/browser/account_test.rb index b349489..3d281ae 100644 --- a/users/test/integration/browser/account_test.rb +++ b/users/test/integration/browser/account_test.rb @@ -66,7 +66,7 @@ class AccountTest < BrowserIntegrationTest end test "change pgp key" do - pgp_key = "My PGP Key Stub" + pgp_key = FactoryGirl.build :pgp_key username, password = submit_signup click_on "Account Settings" within('#update_pgp_key') do @@ -76,7 +76,7 @@ class AccountTest < BrowserIntegrationTest page.assert_selector 'input[value="Saving..."]' # at some point we're done: page.assert_no_selector 'input[value="Saving..."]' - assert page.has_field? 'Public key', with: pgp_key + assert page.has_field? 'Public key', with: pgp_key.to_s user = User.find_by_login(username) assert_equal pgp_key, user.public_key user.account.destroy |