SourceType = require("../src/source_type")
parser = new SourceType("javascript", ["//="]).parser

it "should understand require with string", ->
  blocks = parser.parse("//= require 'lib.js'")
  blocks[0].force.should.equal(false)
  blocks[0].path.should.equal("lib.js")

it "should set skip to false by default", ->
  blocks = parser.parse("//= require 'lib.js'")
  blocks[0].force.should.equal(false)
  blocks[0].skip.should.equal(false)

it "should understand --skip", ->
  blocks = parser.parse("//= require 'lib.js' --skip")
  blocks[0].force.should.equal(false)
  blocks[0].skip.should.equal(true)