Sha256: 18cc45c312380dca7a0afa8b3b1f6f330890ba64e3302da580f493a57abf91c8
Contents?: true
Size: 519 Bytes
Versions: 43
Compression:
Stored size: 519 Bytes
Contents
require 'spec_helper' describe "Template rendering", type: :feature do after do Capybara.ignore_hidden_elements = true end before do Capybara.ignore_hidden_elements = false end it 'layout should have canonical tag referencing site url' do Spree::Store.create!(code: 'spree', name: 'My Spree Store', url: 'spreestore.example.com', mail_from_address: 'test@example.com') visit spree.root_path expect(find('link[rel=canonical]')[:href]).to eql('http://spreestore.example.com/') end end
Version data entries
43 entries across 43 versions & 1 rubygems