Sha256: 462a2401084ae05bd69f8f6f0237981974f6bc9f968dbe0f1e557c67da3998e3

Contents?: true

Size: 888 Bytes

Versions: 3

Compression:

Stored size: 888 Bytes

Contents

require 'spec_helper'
require 'fixtures/autoload_mutate_path'

describe 'Sweetloader options' do
  describe "#autoload_modules" do    
    
    describe ':mutate_path argument' do
      specify do
        lambda { AutoloadModules::First.should respond_to(:test) }.should_not raise_error
      end
    end
    
    describe "#autoload_scope with :mutate_path options" do
      specify do
        lambda { AutoloadModules::Abc }.should_not raise_error
      end
    end

    describe "#autoload_scope with :namespace option" do
      specify do
        lambda { AutoloadModules::Configuration::Admin }.should_not raise_error
        lambda { AutoloadModules::Configuration::Editor }.should_not raise_error
      end
    end

    describe "#autoload_scope with :proc option" do
      specify do
        lambda { AutoloadModules::Procedure }.should_not raise_error
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sweetloader-0.1.6 spec/sweetloader/sweetloader_options_spec.rb
sweetloader-0.1.5 spec/sweetloader/sweetloader_options_spec.rb
sweetloader-0.1.4 spec/sweetloader/sweetloader_options_spec.rb