Sha256: a256114fa5dd96f23794a4ce4e26efc97692515238cbe7cf3ada2dc90c8f360b

Contents?: true

Size: 368 Bytes

Versions: 3

Compression:

Stored size: 368 Bytes

Contents

require 'spec_helper'

module Allowance
  describe "#define" do
    it "should return an instance of Allowance::Permissions" do
      Allowance.define.should be_kind_of(Allowance::Permissions)
    end

    it "should make sure the passed block is executed" do
      p = Allowance.define do |allow|
        allow.sing!
      end

      insist p.sing?
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
allowance-0.1.1 spec/allowance_spec.rb
allowance-0.1.0 spec/allowance_spec.rb
allowance-0.0.4 spec/allowance_spec.rb