Sha256: 0311fc575420c503c8e5b058adabbfdfd893fbce5331ff2745c9086fea28c02a

Contents?: true

Size: 666 Bytes

Versions: 8

Compression:

Stored size: 666 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 =
"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

8 entries across 8 versions & 1 rubygems

Version Path
smart_ioc-0.5.2 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.5.1 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.5.0 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.3.9 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.3.8 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.3.7 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.3.6 spec/smart_ioc/bean_definition_spec.rb
smart_ioc-0.3.5 spec/smart_ioc/bean_definition_spec.rb