Sha256: 041b7b7f458908e28126cf4c64ed9256bfa01f8362fbdaa4027d86f5ed6e7958
Contents?: true
Size: 520 Bytes
Versions: 31
Compression:
Stored size: 520 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
31 entries across 31 versions & 1 rubygems