* Softrun rubocop * Hardrun rubocop (-A) * Change a rubocop rule * Add missing cops * Undo & redo rubocop -A
21 lines
465 B
Ruby
21 lines
465 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe "User edits their Customization settings" do
|
|
let(:user) { create(:user) }
|
|
|
|
before do
|
|
sign_in user
|
|
|
|
visit user_settings_path(:customization)
|
|
end
|
|
|
|
describe "visiting Customization section" do
|
|
it "makes the 'Save Button' footer sticky once a theme is selected", js: true do
|
|
expect(page).not_to have_css(".sticky")
|
|
|
|
choose("Dark Theme")
|
|
|
|
expect(page).to have_css(".sticky")
|
|
end
|
|
end
|
|
end
|