Skip to content

Conversation

victoria-hall1998
Copy link

end

it "Yes, it is a Object, but which" do
expect(1.is_a? _fill_in_object_).to be true
expect(1.is_a? Fixnum).to be true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Integer is preferred here. Fixnum and Bignum are removed from Ruby 2.4+

https://www.ruby-lang.org/en/news/2016/12/25/ruby-2-4-0-released/

end

it "adds an item to the front of an array" do
expect([1]._fill_in_method_here_("banana")).to eq ["banana", 1]
expect([1].insert(1, "banana")).to eq [1, "banana"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't change the expected value. Only fill in a method that makes it work as written.

@mikegee
Copy link
Member

mikegee commented Jun 17, 2017

Pretty good apart from a couple nitpicks. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants