blob: 5da192e7222d9f7cea79c2496c5cfdba86650cf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
require "rails_helper"
describe "Change settings", js: true do
let(:user) { create(:user, password: "password") }
before { http_login(user) }
it "saves the changes properly" do
visit my_settings_path
within(".form-horizontal") do
fill_in('user_city', with: "Calgary, Alberta, Canada")
fill_in('user_website', with: "https://www.cakeside.com/")
fill_in('user_twitter', with: "cakeside")
fill_in('user_facebook', with: "cakeside")
end
click_button "Save changes"
expect(page).to have_content(I18n.translate(:profile_saved))
end
end
|