Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extra test case. #6784

Merged

Conversation

mikegehard
Copy link
Contributor

A very small change that removes what I consider a duplicate test.

Comments welcome.

@@ -6,8 +6,10 @@ def setup
@bc.add_filter { |line| line.gsub("/my/prefix", '') }
end

test "backtrace should not contain prefix when it has been filtered out" do
assert_equal "/my/class.rb", @bc.clean([ "/my/prefix/my/class.rb" ]).first
test "backtrace should filter all lines in a backtrace" do

Choose a reason for hiding this comment

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

Although the tests have similar assertions, the description is quite different. Perhaps we could use something like:

"backtrace should filter all lines in a backtrace removing prefixes"

wdyt?

@mikegehard
Copy link
Contributor Author

Works for me. Thanks for the feedback.

@carlosantoniodasilva
Copy link
Member

Thanks. I'll have to ask you to squash the commits into one, and push force to your branch, so we can merge.

Make the test description better reflect what is happening
@mikegehard
Copy link
Contributor Author

All yours. Thanks.

carlosantoniodasilva added a commit that referenced this pull request Jun 19, 2012
@carlosantoniodasilva carlosantoniodasilva merged commit 82cf95c into rails:master Jun 19, 2012
@carlosantoniodasilva
Copy link
Member

Great, thank you.

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.

None yet

2 participants