wblog/spec/controllers/admin/dashboard_controller_spec.rb

16 lines
272 B
Ruby

require 'rails_helper'
RSpec.describe Admin::DashboardController, type: :controller do
before do
session[:login] = true
end
describe "GET 'index'" do
it "returns http success" do
get 'index'
expect(response).to be_successful
end
end
end