Sha256: fbf99160a0cf32be083c18329b317d602f85bc2fe0fd5ecdceb9902f5107ff09
Contents?: true
Size: 510 Bytes
Versions: 7
Compression:
Stored size: 510 Bytes
Contents
require 'spec/spec_helper' describe Upstart::Exporter::Errors do context "when included" do it "should provide #error method" do class Foo include Upstart::Exporter::Errors end Foo.new.should respond_to(:error) end end describe "#error" do it "should raise a correct exception" do class Foo include Upstart::Exporter::Errors end lambda{ Foo.new.error("arrgh") }.should raise_exception(Upstart::Exporter::Error) end end end
Version data entries
7 entries across 7 versions & 1 rubygems