Sha256: 3abf3fb7bd4e03b17c3d6eccd7d88f344b756b9d11dc0963c8b95bc0add649bc

Contents?: true

Size: 708 Bytes

Versions: 1

Compression:

Stored size: 708 Bytes

Contents

require 'spec_helper'

describe "User Profile" do

  before do
    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

  it "should display all users" do
    click_link "curator1@example.com"
    click_link "View Users"
    page.should have_xpath("//td/a[@href='/users/curator1@example-dot-com']")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sufia-3.5.0 spec/features/users_spec.rb