Sha256: adc3c48a79340be4aeca85b18266c874cac1d4831584c5be46bc008497168e01

Contents?: true

Size: 731 Bytes

Versions: 1

Compression:

Stored size: 731 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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sweetloader-0.1.2 spec/sweetloader/sweetloader_options_spec.rb