Sha256: 87aa6bec20b2f1469d3572d4ba35bf3fb2bbce7f7cc4fe8e507d22b0566ca2fa

Contents?: true

Size: 373 Bytes

Versions: 2

Compression:

Stored size: 373 Bytes

Contents

require "spec_helper"

describe Ninjs::Helpers do
  it 'should create a module filename from a POSIX path' do
    Ninjs::Helpers.create_module_filename('/some/path/some.module.js').should === 'some'
  end
  
  it 'should create a module filename from a Windows path' do
    Ninjs::Helpers.create_module_filename('D:\\\\some\path\some.module.js').should === 'some'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ninjs-0.13.6 spec/helpers_spec.rb
ninjs-0.13.5 spec/helpers_spec.rb