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

Version Path
keppler-2.1.18 installer/core/spec/services/keppler_frontend/urls/assets_spec.rb
keppler-2.1.17 installer/core/spec/services/keppler_frontend/urls/assets_spec.rb
keppler-2.1.16 installer/core/spec/services/keppler_frontend/urls/assets_spec.rb
keppler-2.1.15 installer/core/spec/services/keppler_frontend/urls/assets_spec.rb
keppler-2.1.14 installer/core/spec/services/keppler_frontend/urls/assets_spec.rb
keppler-2.1.13 installer/core/spec/services/keppler_frontend/urls/assets_spec.rb
keppler-2.1.12 installer/core/spec/services/keppler_frontend/urls/assets_spec.rb
keppler-2.1.11 installer/core/spec/services/keppler_frontend/urls/assets_spec.rb
keppler-2.1.10 installer/core/spec/services/keppler_frontend/urls/assets_spec.rb
keppler-2.1.9 installer/core/spec/services/keppler_frontend/urls/assets_spec.rb
keppler-2.1.8 installer/core/spec/services/keppler_frontend/urls/assets_spec.rb
keppler-2.1.7 installer/core/spec/services/keppler_frontend/urls/assets_spec.rb
keppler-2.1.6 installer/core/spec/services/keppler_frontend/urls/assets_spec.rb
keppler-2.1.5 installer/core/spec/services/keppler_frontend/urls/assets_spec.rb