Sha256: 4858de904135d8aa9f1af1cfe16df04db0675e6afe01ad6090ab633196ddba09
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe 'Template rendering', type: :system 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_starter_frontend-0.1.0 | spec/system/template_rendering_spec.rb |