Sha256: 062a0ce53a3d5067b8566433545c550c74806d3b373242aea7c850375a4d4e90

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

require 'spec_helper'

describe 'render gallery', type: :feature, js: true do

  before(:each) { visit images_path }

  it 'renders unordered list of links that contain images' do
    page.should have_selector('ul li a[rel=hermitage] img')
  end

  it 'has invisible layer for hermitage' do
    page.should have_css('div#hermitage', visible: false)
  end

  it 'fills images array' do
    evaluate_script('hermitage.images').should == ['/assets/0-full.png', '/assets/1-full.png', '/assets/2-full.png']
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hermitage-0.0.3 spec/features/render_gallery_spec.rb
hermitage-0.0.2.1 spec/features/render_gallery_spec.rb