Sha256: fff29fc87f686e85675204663bb5e5378a32b871d515916a5969ab0088e876ce

Contents?: true

Size: 1.04 KB

Versions: 14

Compression:

Stored size: 1.04 KB

Contents

require 'rails_helper'
require 'byebug'

RSpec.describe KepplerFrontend::Urls::Front, type: :services do

  context 'front urls' do

    before(:all) do
      @root = KepplerFrontend::Urls::Roots.new
      @front = KepplerFrontend::Urls::Front.new
    end

    context 'view url' do
      let(:result) {"#{@root.rocket_root}/app/views/keppler_frontend/app/frontend/test_index.html.erb"} 

      it { expect(@front.view('test_index')).to eq(result) }
    end

    context 'view js' do
      let(:result) {"#{@root.rocket_root}/app/views/keppler_frontend/app/frontend/test_index.js.erb"} 

      it { expect(@front.view_js('test_index')).to eq(result) }
    end


    context 'front urls' do
      let(:result) {"#{@root.rocket_root}/app/views/layouts/keppler_frontend/app/layouts/application.html.erb"}

      it { expect(@front.layout).to eq(result) }
    end

    context 'front controller' do
      let(:result) {"#{@root.rocket_root}/app/controllers/keppler_frontend/app/frontend_controller.rb"}

      it { expect(@front.controller).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/front_spec.rb
keppler-2.1.17 installer/core/spec/services/keppler_frontend/urls/front_spec.rb
keppler-2.1.16 installer/core/spec/services/keppler_frontend/urls/front_spec.rb
keppler-2.1.15 installer/core/spec/services/keppler_frontend/urls/front_spec.rb
keppler-2.1.14 installer/core/spec/services/keppler_frontend/urls/front_spec.rb
keppler-2.1.13 installer/core/spec/services/keppler_frontend/urls/front_spec.rb
keppler-2.1.12 installer/core/spec/services/keppler_frontend/urls/front_spec.rb
keppler-2.1.11 installer/core/spec/services/keppler_frontend/urls/front_spec.rb
keppler-2.1.10 installer/core/spec/services/keppler_frontend/urls/front_spec.rb
keppler-2.1.9 installer/core/spec/services/keppler_frontend/urls/front_spec.rb
keppler-2.1.8 installer/core/spec/services/keppler_frontend/urls/front_spec.rb
keppler-2.1.7 installer/core/spec/services/keppler_frontend/urls/front_spec.rb
keppler-2.1.6 installer/core/spec/services/keppler_frontend/urls/front_spec.rb
keppler-2.1.5 installer/core/spec/services/keppler_frontend/urls/front_spec.rb