Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
forest committed Sep 24, 2018
1 parent ce35c5b commit 62c372a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/tracker_api/resources/story.rb
Expand Up @@ -96,9 +96,9 @@ def add_label(label)

# Adds a new owner to the story.
#
# @param [Person|Fixnum] owner
# @param [Person|Integer] owner
def add_owner(owner)
owner_id = if owner.kind_of?(Fixnum)
owner_id = if owner.kind_of?(Integer)
owner_id = owner
else
raise ArgumentError, 'Valid Person expected.' unless owner.instance_of?(Resources::Person)
Expand Down
2 changes: 1 addition & 1 deletion test/minitest_helper.rb
Expand Up @@ -6,7 +6,7 @@

require 'minitest/byebug' if ENV['DEBUG']
require 'minitest/autorun'
require 'mocha/mini_test'
require 'mocha/minitest'
require 'awesome_print'
require 'multi_json'
require 'vcr'
Expand Down
2 changes: 1 addition & 1 deletion test/story_test.rb
Expand Up @@ -147,7 +147,7 @@
owner_ids = story.owner_ids

owner_ids.wont_be_empty
owner_ids.first.must_be_instance_of Fixnum
owner_ids.first.must_be_instance_of Integer
end
end

Expand Down

0 comments on commit 62c372a

Please sign in to comment.