Sha256: 05845dc06f1e5521e19bbde8730a0d214a4a2e4fe03a6812eda172a98179d992

Contents?: true

Size: 409 Bytes

Versions: 27

Compression:

Stored size: 409 Bytes

Contents

require 'spec_helper'

module Test
  module ModuleDependency
    module Example; end
  end
end
describe Scorpion::Dependency::ModuleDependency do
  let( :scorpion ){ double }
  let( :dependency )    { Scorpion::Dependency::ModuleDependency.new( Test::ModuleDependency::Example ) }

  it "returns the module itself" do
    expect( dependency.fetch( scorpion ) ).to be Test::ModuleDependency::Example
  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
scorpion-ioc-0.5.6 spec/lib/scorpion/dependency/module_dependency_spec.rb
scorpion-ioc-0.5.5 spec/lib/scorpion/dependency/module_dependency_spec.rb
scorpion-ioc-0.5.4 spec/lib/scorpion/dependency/module_dependency_spec.rb
scorpion-ioc-0.5.2 spec/lib/scorpion/dependency/module_dependency_spec.rb
scorpion-ioc-0.5.1 spec/lib/scorpion/dependency/module_dependency_spec.rb
scorpion-ioc-0.5.0 spec/lib/scorpion/dependency/module_dependency_spec.rb
scorpion-ioc-0.4.0 spec/lib/scorpion/dependency/module_dependency_spec.rb