about summary refs log tree commit diff
path: root/spec/features/profile_spec.rb
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-18 16:59:00 -0500
committerGitHub <noreply@github.com>2023-02-19 06:59:00 +0900
commitc0d7c855b3f6865f16c909e803093cebbc3bd709 (patch)
tree7b7e06a86351f6a06836dbd52b31025682efa7f6 /spec/features/profile_spec.rb
parent08289a38fa787694cb1c94292bd60b119a906315 (diff)
Autofix Rubocop RSpec/Capybara/FeatureMethods (#23708)
Diffstat (limited to 'spec/features/profile_spec.rb')
-rw-r--r--spec/features/profile_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/features/profile_spec.rb b/spec/features/profile_spec.rb
index ec4f9a53f..d1c6919c1 100644
--- a/spec/features/profile_spec.rb
+++ b/spec/features/profile_spec.rb
@@ -2,25 +2,25 @@
 
 require 'rails_helper'
 
-feature 'Profile' do
+describe 'Profile' do
   include ProfileStories
 
-  given(:local_domain) { ENV['LOCAL_DOMAIN'] }
+  subject { page }
+
+  let(:local_domain) { ENV['LOCAL_DOMAIN'] }
 
-  background do
+  before do
     as_a_logged_in_user
     with_alice_as_local_user
   end
 
-  subject { page }
-
-  scenario 'I can view Annes public account' do
+  it 'I can view Annes public account' do
     visit account_path('alice')
 
     is_expected.to have_title("alice (@alice@#{local_domain})")
   end
 
-  scenario 'I can change my account' do
+  it 'I can change my account' do
     visit settings_profile_path
 
     fill_in 'Display name', with: 'Bob'