Sha256: 4bad3425ac8020329ed6e1193a56d2d5db8db4231bd345ce48685d2c66205023

Contents?: true

Size: 355 Bytes

Versions: 4

Compression:

Stored size: 355 Bytes

Contents

require 'spec_helper'

module Test
  module ModulePrey
    module Example; end
  end
end
describe Scorpion::Prey::ModulePrey do
  let( :scorpion ){ double }
  let( :prey )    { Scorpion::Prey::ModulePrey.new( Test::ModulePrey::Example ) }

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

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
scorpion-ioc-0.3.1 spec/lib/scorpion/prey/module_prey_spec.rb
scorpion-ioc-0.3.0 spec/lib/scorpion/prey/module_prey_spec.rb
scorpion-ioc-0.2.0 spec/lib/scorpion/prey/module_prey_spec.rb
scorpion-ioc-0.1.0 spec/lib/scorpion/prey/module_prey_spec.rb