Sha256: 141be8f4d08376bb5d74342ee51e80f95ae3da1087846cd231f52cb73129d226

Contents?: true

Size: 317 Bytes

Versions: 89

Compression:

Stored size: 317 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe "Module" do
  before(:each) do
    @mod = Module.new do
      attr_accessor_with_default :a do
        Hash.new
      end
    end
    @klass = Class.new.extend(@mod)
  end
  it "should be able to set method accessors" do
    @klass.a.should == {}
  end
end

Version data entries

89 entries across 89 versions & 3 rubygems

Version Path
auser-poolparty-0.2.15 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.16 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.20 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.21 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.22 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.23 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.24 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.25 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.26 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.3 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.35 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.36 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.37 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.38 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.39 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.4 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.40 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.41 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.42 spec/poolparty/core/module_spec.rb
auser-poolparty-0.2.44 spec/poolparty/core/module_spec.rb