Sha256: 1b90a566be6671e6fab1cad59a7b2ab246b416298154d4473aec6510d90e78d9

Contents?: true

Size: 532 Bytes

Versions: 6

Compression:

Stored size: 532 Bytes

Contents

require File.join(File.dirname(__FILE__), "spec_helper")

describe "using dependency to require a bad gem with a version" do
  before(:all) do
    Gem.use_paths(File.dirname(__FILE__) / "fixtures" / "gems")
    dependency "bad_require_gem", "0.0.1", :require_as => "BadRequireGem"
  end
  
  it "loads it right away" do
    defined?(Merb::SpecFixture::BadRequireGem).should_not be_nil
  end
  
  it "loads the file once Merb is started" do
    startup_merb
    defined?(Merb::SpecFixture::BadRequireGem).should_not be_nil
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
merb-core-1.1.3 spec10/public/core_ext/require_as_version_spec.rb
merb-core-1.1.2 spec10/public/core_ext/require_as_version_spec.rb
merb-core-1.1.1 spec10/public/core_ext/require_as_version_spec.rb
merb-core-1.1.0 spec10/public/core_ext/require_as_version_spec.rb
merb-core-1.1.0.rc1 spec10/public/core_ext/require_as_version_spec.rb
merb-core-1.1.0.pre spec10/public/core_ext/require_as_version_spec.rb