Skip to content

Commit

Permalink
Omit a validation for reporters' unused features
Browse files Browse the repository at this point in the history
  • Loading branch information
KUOKA Yusuke committed Dec 5, 2013
1 parent 876be73 commit 6e078dc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/observed/config_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,6 @@ def report(tag_pattern=nil, args={}, &block)
else
fail "Invalid combination of arguments: #{tag_pattern} #{args}"
end
begin
reporter.match('test')
rescue => e
fail "A mis-configured reporter plugin found: #{reporter}"
rescue NotImplementedError => e
builtin_methods = Object.methods
info = (reporter.methods - builtin_methods).map {|sym| reporter.method(sym) }.map(&:source_location).compact
fail "Incomplete reporter plugin found: #{reporter}, defined in: #{info}"
end

reporters << reporter
report_it = convert_to_job(reporter)
Expand Down

0 comments on commit 6e078dc

Please sign in to comment.