Skip to content

Instantly share code, notes, and snippets.

@arnab
Last active December 12, 2015 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnab/4713091 to your computer and use it in GitHub Desktop.
Save arnab/4713091 to your computer and use it in GitHub Desktop.
Figure out which tests are causing weird warnings.
class ExampleControllerTest < Test::Unit
# setup etc.
test "something should do something" do
get :new
# assert something
end
# more tests
end
/path/to/some/_partial.html.erb:48: warning: Object#id will be deprecated; use Object#object_id
.test_something_should_do_something(ExampleControllerTest)
<li>
<%= @something.try(:id) %>
</li>
def teardown
puts "#{name}\n"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment