Move login_as after creating data for a test
It doesn't really affect the tests, but it helps isolate useless assignments, and we already did it this way 94% of the time.
This commit is contained in:
@@ -2,8 +2,8 @@ require "rails_helper"
|
||||
|
||||
describe "Admin edit translatable records" do
|
||||
before do
|
||||
login_as(create(:administrator).user)
|
||||
translatable.update(attributes)
|
||||
login_as(create(:administrator).user)
|
||||
end
|
||||
|
||||
let(:fields) { translatable.translated_attribute_names }
|
||||
|
||||
Reference in New Issue
Block a user