style: standardize quotes in tests
- Changed single quotes to double quotes in assertions for consistency. - Updated routes file for spacing consistency in resource declaration. These changes improve code readability and maintain consistency in the codebase, making it easier for developers to follow the style guide.
This commit is contained in:
parent
a54ebdbf23
commit
194e441c50
@ -15,6 +15,6 @@ class UserShowTest < ActionDispatch::IntegrationTest
|
||||
test "should display user when activated" do
|
||||
get user_path(@active_user)
|
||||
assert_response :success
|
||||
assert_template 'users/show'
|
||||
assert_template "users/show"
|
||||
end
|
||||
end
|
||||
|
@ -1,7 +1,6 @@
|
||||
require "test_helper"
|
||||
|
||||
class UsersSignupTest < ActionDispatch::IntegrationTest
|
||||
|
||||
def setup
|
||||
ActionMailer::Base.deliveries.clear
|
||||
end
|
||||
@ -42,13 +41,13 @@ class UsersSignupTest < ActionDispatch::IntegrationTest
|
||||
get edit_account_activation_path("invalid token", email: user.email)
|
||||
assert_not is_logged_in?
|
||||
# 令牌有效,邮箱错误
|
||||
get edit_account_activation_path(user.activation_token, email: 'wrong')
|
||||
get edit_account_activation_path(user.activation_token, email: "wrong")
|
||||
assert_not is_logged_in?
|
||||
# 令牌有效
|
||||
get edit_account_activation_path(user.activation_token, email: user.email)
|
||||
assert user.reload.activated?
|
||||
follow_redirect!
|
||||
assert_template 'users/show'
|
||||
assert_template "users/show"
|
||||
assert is_logged_in?
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user