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