Sha256: 496e7606b9ea7efc455ecd3aaee0d46d15f6b1456118ac74fb7d1be54e25ac27

Contents?: true

Size: 412 Bytes

Versions: 3

Compression:

Stored size: 412 Bytes

Contents

require 'spec_helper'

describe 'Theme', type: :request do
  describe 'Caption' do
    it 'should display a caption if one is specified' do
      visit '/themes/caption'
      page.should have_xpath('//caption[text()="Nobel Prize Winners"]')
    end

    it 'should display no caption if no caption is specified' do
      visit '/themes/no_caption'
      page.should have_no_xpath('//caption')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tableficate-0.3.2 spec/theme/caption_spec.rb
tableficate-0.3.1 spec/theme/caption_spec.rb
tableficate-0.3.0 spec/theme/caption_spec.rb