Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,8 @@ runner.go();
Here's an example yaml configuration:

```yaml
beanstalkd:
host: "127.0.0.1"
port: 11300
host: "127.0.0.1"
port: 11300
watch:
- 'circle'
- 'picadilly'
Expand All @@ -413,7 +412,7 @@ handlers:
ignoreDefault: true
```

__beanstalkd__: where to connect
__host__, __port__: where to connect
__watch__: a list of tubes to watch.
__handlers__: a list of handler files to require
__ignoreDefault__: true if this worker should ignore the default tube
Expand Down
5 changes: 2 additions & 3 deletions test/fixtures/badconfig.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
beanstalkd:
host: "localhost"
port: 11300
host: "localhost"
port: 11300
handlers:
- "./test/fixtures/emitkeys.js"
- "./dontexist.js"
Expand Down
5 changes: 2 additions & 3 deletions test/fixtures/runner.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
beanstalkd:
host: "localhost"
port: 11300
host: "localhost"
port: 11300
handlers:
- "./test/fixtures/emitkeys.js"
- "./test/fixtures/reverse.js"
Expand Down
3 changes: 1 addition & 2 deletions test/test-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ describe('FiveBeansRunner', function()
var config = r.readConfiguration();

config.must.be.an.object();
config.must.have.property('beanstalkd');
config.beanstalkd.host.must.equal('localhost');
config.host.must.equal('localhost');
config.watch.must.be.an.array();
config.ignoreDefault.must.equal(true);
});
Expand Down