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

Version Path
remnant-1.0.0 spec/base_spec.rb
remnant-0.4.10 spec/base_spec.rb
remnant-0.4.9 spec/base_spec.rb
remnant-0.4.8 spec/base_spec.rb
remnant-0.4.7 spec/base_spec.rb
remnant-0.4.6 spec/base_spec.rb
remnant-0.4.5 spec/base_spec.rb
remnant-0.9.5 spec/base_spec.rb
remnant-0.9.4 spec/base_spec.rb
remnant-0.4.4 spec/base_spec.rb
remnant-0.9.3 spec/base_spec.rb
remnant-0.9.2 spec/base_spec.rb
remnant-0.9.1 spec/base_spec.rb
remnant-0.9.0 spec/base_spec.rb
remnant-0.4.3 spec/base_spec.rb
remnant-0.4.2 spec/base_spec.rb
remnant-0.4.1 spec/base_spec.rb
remnant-0.4.0 spec/base_spec.rb
remnant-0.3.3 spec/base_spec.rb
remnant-0.3.2 spec/base_spec.rb