-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tests warning #1173
Fix tests warning #1173
Conversation
@@ -1,6 +1,6 @@ | |||
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb') | |||
|
|||
class TestZhCnLocale < Test::Unit::TestCase | |||
class TestZhLocale < Test::Unit::TestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take a look at the name of this file. Definitely copy and 🍝
@@ -29,10 +29,9 @@ def first_name | |||
fetch('elder_scrolls.first_name') | |||
end | |||
|
|||
def first_name | |||
def last_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixing duplicated methods. Copy and 🍝 and adding specs for the new methods 👍
@@ -57,8 +57,7 @@ def test_omniauth_google_with_name | |||
auth = @tester.google(name: custom_name) | |||
info = auth[:info] | |||
extra_raw_info = auth[:extra][:raw_info] | |||
id_info = auth[:id_info] | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These variables are not being used. Why are we still declaring them? Copy and 🍝 again?
…est-variables Fix tests warning
This PR was created because of this issue #1171.
The goal is to clean up the warnings that appear when we run
bundle && bundle exec rake
.first_name
methods). It should befirst_name
andlast_name
first_name
andlast_name
methods