Sha256: f744e6cf3013e799488034d26f3aaf7181c15359305ae413115c8617354efbde

Contents?: true

Size: 562 Bytes

Versions: 8

Compression:

Stored size: 562 Bytes

Contents

# frozen_string_literal: true

require "rails_helper"

module Archangel
  module Backend
    RSpec.describe DashboardsController, type: :controller do
      before { stub_authorization! create(:user) }

      describe "loads correct layout" do
        it "loads correct view" do
          get :show

          expect(response).to render_with_layout("backend")
        end
      end

      describe "GET #show" do
        it "loads correct view" do
          get :show

          expect(response).to render_template(:show)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
archangel-0.3.0 spec/controllers/archangel/backend/dashboards_controller_spec.rb
archangel-0.0.8 spec/controllers/archangel/backend/dashboards_controller_spec.rb
archangel-0.0.7 spec/controllers/archangel/backend/dashboards_controller_spec.rb
archangel-0.0.6 spec/controllers/archangel/backend/dashboards_controller_spec.rb
archangel-0.0.5 spec/controllers/archangel/backend/dashboards_controller_spec.rb
archangel-0.0.4 spec/controllers/archangel/backend/dashboards_controller_spec.rb
archangel-0.0.3 spec/controllers/archangel/backend/dashboards_controller_spec.rb
archangel-0.0.2 spec/controllers/archangel/backend/dashboards_controller_spec.rb