Sha256: 5cefa52bdebb3a37b2e095ad5653287b5d335d5add6c74ef3627c590cc184433
Contents?: true
Size: 560 Bytes
Versions: 27
Compression:
Stored size: 560 Bytes
Contents
require 'spec_helper' describe Remnant do context "#configuration" do it "should return the same object for multiple calls" do Remnant.configuration.should == Remnant.configuration end end context "#configure" do it "should fail without a block" do lambda { Remnant.configure }.should raise_error end it "should instance_eval the block onto configuration" do block = Proc.new { handle {|payload| } } mock(Remnant).configuration.stub!.instance_eval(&block) Remnant.configure(&block) end end end
Version data entries
27 entries across 27 versions & 1 rubygems