Sha256: fe7ac8f5af45c56d69293022cf7b6fb9ede83d42d2920286d2cff3222f4f4f71
Contents?: true
Size: 604 Bytes
Versions: 4
Compression:
Stored size: 604 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 images = evaluate_script('hermitage.images') expected = Array.new(3) do |i| { 'source' => "/assets/#{i}-full.png", 'loaded' => false } end images.should == expected end end
Version data entries
4 entries across 4 versions & 1 rubygems