Sha256: def4b94b428d77dca53f9d1537fd9d3cc767c11bc51924e8acac11329da663ed
Contents?: true
Size: 632 Bytes
Versions: 14
Compression:
Stored size: 632 Bytes
Contents
require 'rails_helper' require 'byebug' RSpec.describe KepplerFrontend::Urls::Assets, type: :services do context 'assets urls' do before(:all) do @root = KepplerFrontend::Urls::Roots.new @assets = KepplerFrontend::Urls::Assets.new end context 'core urls' do let(:result) {"#{@root.rocket_root}/app/assets/images/keppler_frontend/app"} it { expect(@assets.core_assets('images', 'app')).to eq(result) } end context 'front urls' do let(:result) {"/assets/keppler_frontend/app/image.jpg"} it { expect(@assets.front_assets('image.jpg')).to eq(result) } end end end
Version data entries
14 entries across 14 versions & 1 rubygems