Skip to content

Commit

Permalink
Merge branch 'master' into feature/windows-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bergholdt committed Nov 3, 2016
2 parents 7222a36 + 43635f4 commit 5aaf053
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/metric_fu/generator.rb
Expand Up @@ -124,7 +124,7 @@ def to_h #:nodoc:
end

def self.not_implemented
raise <<-EOF
raise NotImplementedError.new <<-EOF
Required method #{caller[0]} not implemented in #{__FILE__}.
This method must be implemented by a concrete class descending
from Generator. See generator class documentation for more
Expand Down
8 changes: 4 additions & 4 deletions spec/metric_fu/generator_spec.rb
Expand Up @@ -42,19 +42,19 @@ def to_h
end

describe "#generate_result" do
it "should raise an error when calling #emit" do
it "should raise an error when calling #emit" do
@abstract_class = MetricFu::Generator.new
expect { @abstract_class.generate_result }.to raise_error
expect { @abstract_class.generate_result }.to raise_error NotImplementedError
end

it "should call #analyze" do
@abstract_class = MetricFu::Generator.new
expect { @abstract_class.generate_result }.to raise_error
expect { @abstract_class.generate_result }.to raise_error NotImplementedError
end

it "should call #to_h" do
@abstract_class = MetricFu::Generator.new
expect { @abstract_class.generate_result }.to raise_error
expect { @abstract_class.generate_result }.to raise_error NotImplementedError
end
end

Expand Down

0 comments on commit 5aaf053

Please sign in to comment.