Sha256: 95fc09935895031bc8588b055fd674288d946bd074cb92e477cb76a0584ee8a1

Contents?: true

Size: 316 Bytes

Versions: 1

Compression:

Stored size: 316 Bytes

Contents

describe :MModule do
  subject { MModule }
  after { remove_const :My }

  describe '.new' do
    it 'extends result object with self::Methods' do
      class My < subject
        module Methods
          def abc; 5 end
        end
      end
      
      My.new.instance_methods.should include :abc
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
meta_module-0.0.1 spec/unit/meta_module/m_module/class_methods/new_spec.rb