Sha256: 2de063c2c724eb69db1211eda33d081a13f2e0e5f61f72ffdd3bd7087a9ae5f5

Contents?: true

Size: 379 Bytes

Versions: 5

Compression:

Stored size: 379 Bytes

Contents

shared_examples 'upload avatar' do

  it 'uploads', js: true do
    sleep 0.5
    click '#upload-picture-link'
    absolute_path = Rails.root + '../support/120x120.jpg'
    attach_file @file_name, absolute_path
    click_button 'Upload'
    flash_updated?
  end

end

shared_examples 'show avatar' do

  it 'shows avatar' do
    page.should have_css '#avatar-picture'
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gaku-0.2.4 frontend/spec/support/features/shared_examples/avatarable_spec.rb
gaku-0.2.3 frontend/spec/support/features/shared_examples/avatarable_spec.rb
gaku-0.2.2 frontend/spec/support/features/shared_examples/avatarable_spec.rb
gaku-0.2.1 frontend/spec/support/features/shared_examples/avatarable_spec.rb
gaku-0.2.0 frontend/spec/support/features/shared_examples/avatarable_spec.rb