diff --git a/package.json b/package.json index 67c8d62..d5c93aa 100644 --- a/package.json +++ b/package.json @@ -4,35 +4,35 @@ "version": "0.1.1", "author": "K.K. POON ", "license": "MIT", - - "keywords": ["hubot","hubot-scripts","weather","wunderground"], - + "keywords": [ + "hubot", + "hubot-scripts", + "weather", + "wunderground" + ], "repository": { "type": "git", "url": "git://github.com/kkpoon/hubot-weather-underground.git" }, - "bugs": { "url": "https://github.com/kkpoon/hubot-weather-underground/issues" }, - "dependencies": { "coffee-script": "~1.6" }, - "devDependencies": { - "mocha": "*", "chai": "*", - "sinon-chai": "*", - "sinon": "*", + "grunt": "^1.0.1", + "grunt-cli": "^1.2.0", + "grunt-contrib-watch": "~0.5.3", "grunt-mocha-test": "~0.7.0", "grunt-release": "~0.6.0", "matchdep": "~0.1.2", - "grunt-contrib-watch": "~0.5.3" + "mocha": "*", + "sinon": "*", + "sinon-chai": "*" }, - "main": "index.coffee", - "scripts": { "test": "grunt test" } diff --git a/test/weather-test.coffee b/test/weather-test.coffee index c3186ef..cf018c2 100644 --- a/test/weather-test.coffee +++ b/test/weather-test.coffee @@ -12,8 +12,8 @@ describe 'weather', -> require('../src/weather')(@robot) - it 'registers a respond listener', -> - expect(@robot.respond).to.have.been.calledWith(/hello/) + it 'registers a respond weather of listener', -> + expect(@robot.respond).to.have.been.calledWith(/weather of (.*)/i) - it 'registers a hear listener', -> - expect(@robot.hear).to.have.been.calledWith(/orly/) + it 'registers a respond what is exactly called listener', -> + expect(@robot.respond).to.have.been.calledWith(/what is (.*) (exactly|exact) (called|named|call|name)[\?]?/i)