Browse files

altered the e1 silencer

git-svn-id: https://svn.thoughtbot.com/gems/quiet_backtrace/trunk@18 09e380d5-dfe7-4e7f-bb75-86e4d9cf726d
  • Loading branch information...
1 parent 5bc4ef7 commit d170278d9fc54b0d07ae926155cb94a536690931 dcroak committed Nov 30, 2007
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/quiet_backtrace.rb
  2. +1 −1 test/quiet_backtrace_test.rb
View
2 lib/quiet_backtrace.rb
@@ -11,7 +11,7 @@ def self.included(klass)
mattr_accessor :silencers
self.silencers = { :test_unit => lambda { |line| (line.include?("ruby") && line.include?("/test/unit")) },
:gem_root => lambda { |line| line =~ /ruby\/gems/i },
- :e1 => lambda { |line| line.include?("-e:1") },
+ :e1 => lambda { |line| line == "-e:1" },
:rails_vendor => lambda { |line| line.include?("#{RAILS_ROOT}/vendor") if defined?(RAILS_ROOT) }
}
View
2 test/quiet_backtrace_test.rb
@@ -46,7 +46,7 @@ def setup
end
should "silence any line that includes the e1 nonsense" do
- assert !@default_quiet_backtrace.any? { |line| line.include?("-e:1") }, "One or more e1 nonsense lines are not being filtered: #{@default_quiet_backtrace}"
+ assert !@default_quiet_backtrace.any? { |line| line == "-e:1" }, "One or more e1 nonsense lines are not being filtered: #{@default_quiet_backtrace}"
end
should "remove in methods from the end of lines" do

0 comments on commit d170278

Please sign in to comment.