Sha256: 32c20b4afe8e81a842a17e8c24fc0eccc4e0312be3a1df098e778ec56fde3b52

Contents?: true

Size: 626 Bytes

Versions: 11

Compression:

Stored size: 626 Bytes

Contents

require 'spec_helper'

describe "User Profile" do

  before do
    # FactoryGirl.create(:user)
    # FactoryGirl.create(:archivist)
    # FactoryGirl.create(:curator)
    sign_in :curator
  end

  it "should be displayed" do
    click_link "curator1@example.com"
    page.should have_content "Edit Your Profile"
  end

  it "should be editable" do
    click_link "curator1@example.com"
    click_link "Edit Your Profile"
    fill_in 'user_twitter_handle', with: 'curatorOfData'
    click_button 'Save Profile'
    page.should have_content "Your profile has been updated"
    page.should have_content "curatorOfData"
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sufia-3.4.0.rc4 spec/features/users_spec.rb
sufia-3.4.0.rc3 spec/features/users_spec.rb
sufia-3.3.1 spec/features/users_spec.rb
sufia-3.4.0.rc2 spec/features/users_spec.rb
sufia-3.4.0.rc1 spec/features/users_spec.rb
sufia-3.3.0 spec/features/users_spec.rb
sufia-3.2.1 spec/features/users_spec.rb
sufia-3.1.3 spec/features/users_spec.rb
sufia-3.1.2 spec/features/users_spec.rb
sufia-3.1.1 spec/features/users_spec.rb
sufia-3.1.0 spec/features/users_spec.rb