1 require "application_system_test_case"
3 class UserSocialLinksTest < ApplicationSystemTestCase
5 stub_request(:get, /.*gravatar.com.*d=404/).to_return(:status => 404)
12 test "can add social links" do
13 within_content_body do
14 click_on "Edit Profile"
16 assert_no_field "Social Profile Link 1"
18 click_on "Add Social Link"
19 fill_in "Social Profile Link 1", :with => "https://example.com/user/fred"
20 click_on "Update Profile"
22 assert_link "example.com/user/fred"