Last active
December 12, 2015 04:18
-
-
Save arnab/4713091 to your computer and use it in GitHub Desktop.
Figure out which tests are causing weird warnings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExampleControllerTest < Test::Unit | |
# setup etc. | |
test "something should do something" do | |
get :new | |
# assert something | |
end | |
# more tests | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/path/to/some/_partial.html.erb:48: warning: Object#id will be deprecated; use Object#object_id | |
.test_something_should_do_something(ExampleControllerTest) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li> | |
<%= @something.try(:id) %> | |
</li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def teardown | |
puts "#{name}\n" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment