Sha256: d89f25683a1964471086cfa29c4787ec805813cb71312fd43a7644327fc0dd32
Contents?: true
Size: 347 Bytes
Versions: 2
Compression:
Stored size: 347 Bytes
Contents
require 'spec_helper' RSpec.describe Spree::PagesHelper, type: :helper do context '.render_snippet' do it 'return body when page exists' do page = create(:page) expect(render_snippet(page.slug)).to eq page.body end it 'return nil when no page exist' do expect(render_snippet('hello')).to be_nil end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_static_content-2.0.0 | spec/helpers/spree/page_helper_spec.rb |
solidus_static_content-1.0.0 | spec/helpers/page_helper_spec.rb |