-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Dota API: Str Heroes, heroes quotes, Items, Teams, Players #1174
Conversation
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.
Just need to restore the rake task, otherwise 👍
tasks/test.rake
Outdated
@@ -3,7 +3,7 @@ require 'rake/testtask' | |||
Rake::TestTask.new do |t| | |||
t.libs << "test" | |||
t.libs << "." | |||
t.test_files = FileList['test/test*.rb'] | |||
t.test_files = FileList['test/test_faker_dota.rb'] |
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.
This eliminates all the rest of the tests and should be put back to what's on master.
test/test_faker_dota.rb
Outdated
|
||
def test_hero | ||
assert_match(/\w+/, @tester.hero) | ||
puts @tester.hero |
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.
Please remove the instance method puts
to keep the tests clean
test/test_faker_dota.rb
Outdated
|
||
def test_item | ||
assert_match(/\w+/, @tester.item) | ||
puts @tester.item |
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.
Same here. Please do not forget to remove the other puts below.
Travis is red because of this:
@felipesousafs please fix it and let us know when it's ready for review again. Thanks! |
After making the changes, could you also update the |
[UPDATES]: Remove puts from test file and fix the quote method
Pull Request Test Coverage Report for Build 2171
💛 - Coveralls |
You still need to fix the |
Let's get this PR merged today. Lemme know when you fix the violations. |
Travis is still red because of Rubocop 😢 |
What does this means and how can I fix this? |
No worries. You should use Rubocop in your project because it'll force you to follow a few great Ruby practices. Lemme take a look at your question. |
I basically pulled your branch and ran |
Nice! |
…ruby#1174) * [ADD] Dota2: Str Heroes, heroes quotes, Items, Teams, Players * Restore rake task to match with master * [ADD] Dota2: Str Heroes, heroes quotes, Items, Teams, Players [UPDATES]: Remove puts from test file and fix the quote method * [UPDATE]: Change the type of the array of strings used. * Update test_faker_dota.rb
As described in the commit message, added some heroes (and hero quotes), items, teams and players.