Sha256: 841846a70e70e4d1f3b3d6665b29578046093dc802ea81e4eb26f90135ba64d0

Contents?: true

Size: 508 Bytes

Versions: 6

Compression:

Stored size: 508 Bytes

Contents

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

describe "using dependency to require a bad gem" do
  before(:all) do
    Gem.use_paths(File.dirname(__FILE__) / "fixtures" / "gems")
    dependency "bad_require_gem", :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_working_spec.rb
merb-core-1.1.2 spec10/public/core_ext/require_as_working_spec.rb
merb-core-1.1.1 spec10/public/core_ext/require_as_working_spec.rb
merb-core-1.1.0 spec10/public/core_ext/require_as_working_spec.rb
merb-core-1.1.0.rc1 spec10/public/core_ext/require_as_working_spec.rb
merb-core-1.1.0.pre spec10/public/core_ext/require_as_working_spec.rb