Sha256: a37e77a69638fedd99b05f76e35515b7d853286df595495313eed7b7f6f6d071

Contents?: true

Size: 601 Bytes

Versions: 23

Compression:

Stored size: 601 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
      )

      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

23 entries across 23 versions & 1 rubygems

Version Path
smart_ioc-0.2.5 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.2.4 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.2.3 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.2.2 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.2.1 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.2.0 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.1.30 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.1.29 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.1.28 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.1.27 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.1.26 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.1.25 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.1.24 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.1.23 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.1.22 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.1.21 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.1.20 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.1.19 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.1.18 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.1.17 spec/smart_ioc/bean_definition_spec.rb