Skip to content

Commit

Permalink
Fixes failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpstevens committed Jun 18, 2014
1 parent b13adc9 commit 6c901c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ module.exports = function(grunt) {
mochaTest: {
feature: {
options: {
reporter: 'list',
reporter: 'spec',
require: 'coffee-script/register',
colors: true
},
src: ['tests/feature/*-spec.coffee']
},
unit: {
options: {
reporter: 'list',
reporter: 'spec',
require: 'coffee-script/register',
colors: true
},
Expand Down
3 changes: 1 addition & 2 deletions tests/fixtures/server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ exports.start = (port) ->

app.all '*', (req, res) -> res.json 404, { message: "Page not found" }

server = app.listen port, ->
console.log "> server started on port #{port}"
server = app.listen port

exports.stop = -> server.close()
4 changes: 2 additions & 2 deletions tests/unit/arg-parser-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ describe "ArgParser", ->
it "returns a valid options object", ->
args = ["http://example.dev", ((err, res) -> null)]
opts = argParser.getOpts(args)
expect(opts.config).to.deep.equal { url: args[0] }
expect(opts.config).to.deep.equal { url: args[0], json: true }
expect(opts.callback).to.deep.equal args[1]

describe "[url]", ->

it "returns a valid options object", ->
args = ["http://example.dev"]
expect(argParser.getOpts(args).config).to.deep.equal { url: "http://example.dev" }
expect(argParser.getOpts(args).config).to.deep.equal { url: "http://example.dev", json: true }
expect(argParser.getOpts(args).callback).to.not.exist

describe "[config, callback]", ->
Expand Down

0 comments on commit 6c901c3

Please sign in to comment.