Retrospring/spec/controllers/settings/data_controller_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
401 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require "rails_helper"
describe Settings::DataController, type: :controller do
describe "#index" do
subject { get :index }
context "user signed in" do
let(:user) { FactoryBot.create(:user) }
before { sign_in user }
it "shows the index page" do
subject
expect(response).to have_rendered(:index)
end
end
end
end