Sha256: c6438609349c2d4ad6ed109f703035662069dc545f181bf61c569695b587405a

Contents?: true

Size: 583 Bytes

Versions: 5

Compression:

Stored size: 583 Bytes

Contents

require 'spec_helper'

describe 'Adding a section to a Profile: ' do

  context 'logged in user' do
    let(:account) { FactoryGirl.create(:account, display_name: 'Bilbo Baggins') }
    let(:user) { account.user }
    before { login_as(user) }
  
    it 'adds a section to their profile' do
      visit person_path(user)
      click_on 'Add a Section to my Profile'
      within('#new_collection') do
        fill_in('Title', with: 'New Collection on Bilbo')
        click_on 'Create Collection'
      end
      page.should have_content('New Collection on Bilbo')
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
curate-0.5.4 spec/features/adding_section_to_profile.rb
curate-0.5.2 spec/features/adding_section_to_profile.rb
curate-0.5.1 spec/features/adding_section_to_profile.rb
curate-0.5.0 spec/features/adding_section_to_profile.rb
curate-0.4.2 spec/features/adding_section_to_profile.rb