Sha256: e1503823d8e568d9b874cb0d0b153778709aa85cb1978a7543faecc1df562839

Contents?: true

Size: 575 Bytes

Versions: 8

Compression:

Stored size: 575 Bytes

Contents

require 'spec_helper'

describe 'Adding a section to a Profile: ' do

  context 'logged in user' do
    let(:account) { FactoryGirl.create(:account, 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

8 entries across 8 versions & 1 rubygems

Version Path
curate-0.6.6 spec/features/adding_section_to_profile.rb
curate-0.6.5 spec/features/adding_section_to_profile.rb
curate-0.6.4 spec/features/adding_section_to_profile.rb
curate-0.6.3 spec/features/adding_section_to_profile.rb
curate-0.6.1 spec/features/adding_section_to_profile.rb
curate-0.6.0 spec/features/adding_section_to_profile.rb
curate-0.5.6 spec/features/adding_section_to_profile.rb
curate-0.5.5 spec/features/adding_section_to_profile.rb