Sha256: 94a212cebb3550fe924f42572bf2025458b8d552d32bce3fe9d50fef905b9913
Contents?: true
Size: 503 Bytes
Versions: 3
Compression:
Stored size: 503 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
3 entries across 3 versions & 1 rubygems