Sha256: d8e975585b24ba8504b793eb4032de8b9b0356ec0357d9a8e7184d1723954ce1

Contents?: true

Size: 689 Bytes

Versions: 4

Compression:

Stored size: 689 Bytes

Contents

require 'spec_helper'

describe SmartIoC::BeanDefinition do
  describe "::inspect" do
    it {
      bd = SmartIoC::BeanDefinition.new(
        name:           :test_bean,
        package:        :test_package,
        path:           'current_dir',
        klass:          Object,
        scope:          :singleton,
        context:        :default,
        instance:       false,
        factory_method: nil,
        after_init:     nil,
      )

      str =
"class:          Object
name:           :test_bean
package:        :test_package
context:        :default
path:           current_dir
instance:       false
factory_method: "

      expect(bd.inspect).to eq(str)
    }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
smart_ioc-0.4.0 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.3.2 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.3.1 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.3.0 spec/smart_ioc/bean_definition_spec.rb