Skip to content

Instantly share code, notes, and snippets.

@searls
Created January 26, 2012 19:23
Show Gist options
  • Select an option

  • Save searls/1684529 to your computer and use it in GitHub Desktop.

Select an option

Save searls/1684529 to your computer and use it in GitHub Desktop.
describe "AirDrop", ->
describe "including source", ->
context "with packaging", ->
context "with individual paths", ->
Given -> drop = AirDrop("drop").include("spec/fixtures/includes/b.js").include("spec/fixtures/includes/a.js").package()
context "files in order", ->
Then -> expectSourceToMatchFile drop, "#{__dirname}/fixtures/packaged/ba.js"
context "files included twice", ->
When -> drop.include("spec/fixtures/includes/b.js").include("spec/fixtures/includes/a.js")
Then -> expectSourceToMatchFile drop, "#{__dirname}/fixtures/packaged/ba.js"
context "with globbed paths", ->
Given -> drop = AirDrop("drop").include("spec/fixtures/includes/*.js").package()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment