Sha256: 16cf0c3b1d0e46fa5121510cca30e3fd314a8e3eb060bfaa18a0dac3f6903e15

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 Bytes

Contents

require File.expand_path('../../../spec_helper', __FILE__)

include Fathom

describe ContextBehavior do
  it "should be able to set a default_class" do
    @class = Class.new do
      extend Plugins
      plugin ContextBehavior
      default_class Hash
    end
    obj = @class.new
    obj.object.should eql({})
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fathom-0.5.0 spec/fathom/behaviors/context_behavior_spec.rb