Sha256: 9d1a7eba910d18281f02752349d6015b025f2a9a9f6074ecd62f198b3a07d26c

Contents?: true

Size: 310 Bytes

Versions: 13

Compression:

Stored size: 310 Bytes

Contents

describe 'Kernel.require_tree' do
  it 'loads all the files in a directory' do
    $ScratchPad = []
    require_tree '../fixtures/require_tree_files'

    $ScratchPad.sort.should == ['file 1', 'file 2', 'file 3', 'file 4', 'file 5',
                                'nested 1', 'nested 2', 'other 1']
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
opal-0.8.1 spec/opal/core/kernel/require_tree_spec.rb
opal-0.8.1.rc1 spec/opal/core/kernel/require_tree_spec.rb
opal-0.8.0 spec/opal/core/kernel/require_tree_spec.rb
opal-0.8.0.rc3 spec/opal/core/kernel/require_tree_spec.rb
opal-0.8.0.rc2 spec/opal/core/kernel/require_tree_spec.rb
opal-0.8.0.rc1 spec/opal/core/kernel/require_tree_spec.rb
opal-0.8.0.beta1 spec/opal/core/kernel/require_tree_spec.rb
opal-0.7.2 spec/opal/core/kernel/require_tree_spec.rb
opal-0.7.1 spec/opal/core/kernel/require_tree_spec.rb
opal-0.7.0 spec/opal/core/kernel/require_tree_spec.rb
opal-0.7.0.rc1 spec/opal/core/kernel/require_tree_spec.rb
opal-0.7.0.beta3 spec/opal/core/kernel/require_tree_spec.rb
opal-0.7.0.beta2 spec/opal/core/kernel/require_tree_spec.rb