Sha256: c1b8c98cbb2a88a1e03b80a89f61b162a699824537e647c82450456d38d9ecee

Contents?: true

Size: 549 Bytes

Versions: 22

Compression:

Stored size: 549 Bytes

Contents

require 'spec_helper'

describe Flail do

  context "#configuration" do
    it "should return the same object for multiple calls" do
      Flail.configuration.should == Flail.configuration
    end
  end

  context "#configure" do
    it "should fail without a block" do
      lambda { Flail.configure }.should raise_error
    end

    it "should instance_eval the block onto configuration" do
      block = Proc.new { handle {|payload| } }
      mock(Flail).configuration.stub!.instance_eval(&block)
      Flail.configure(&block)
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
flail-1.1.1 spec/base_spec.rb
flail-1.1.0 spec/base_spec.rb
flail-1.0.1 spec/base_spec.rb
flail-1.0.0 spec/base_spec.rb
flail-0.1.6 spec/base_spec.rb
flail-0.1.5 spec/base_spec.rb
flail-0.1.4 spec/base_spec.rb
remnant-0.1.3 spec/base_spec.rb
remnant-0.1.2 spec/base_spec.rb
remnant-0.1.1 spec/base_spec.rb
remnant-0.1.0 spec/base_spec.rb
flail-0.1.3 spec/base_spec.rb
flail-0.1.2 spec/base_spec.rb
flail-0.1.1 spec/base_spec.rb
flail-0.1.0 spec/base_spec.rb
flail-0.0.7 spec/base_spec.rb
flail-0.0.6 spec/base_spec.rb
flail-0.0.5 spec/base_spec.rb
flail-0.0.4 spec/base_spec.rb
flail-0.0.3 spec/base_spec.rb