Sha256: b13545f4fbbec51053818774e1a0cc20c2456c5387fe08fb2b5503163d1ec690
Contents?: true
Size: 649 Bytes
Versions: 41
Compression:
Stored size: 649 Bytes
Contents
require 'spec_helper' describe Locomotive::Steam::Liquid::Filters::Misc do include Locomotive::Steam::Liquid::Filters::Base describe '#absolute_url' do subject { absolute_url(url) } context 'absolute url' do let(:url) { 'http://www.locomotive.works/themes/background.png' } it { is_expected.to eq 'http://www.locomotive.works/themes/background.png' } end context 'relative url' do before { @context = { 'base_url' => 'http://www.locomotive.works' } } let(:url) { 'themes/background.png' } it { is_expected.to eq 'http://www.locomotive.works/themes/background.png' } end end end
Version data entries
41 entries across 41 versions & 1 rubygems