Skip to content

Commit

Permalink
Specs for multiple options
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 20, 2009
1 parent 99c55e2 commit 055a1f7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Readme.md
@@ -1,7 +1,17 @@

# YourLib
# Growl for JavaScript (Rhino)

Description
lib/growl.js adds Growl support for the Rhino JavaScript engine. This is
essentially a port of my [Ruby Growl Library](http://github.com/visionmedia/growl).

## Examples

Growl.notify('You have mail!')
Growl.notify('5 new messages', { sticky: true })

## More Information

* For in-depth documentation please view spec/spec.core.js

## License

Expand Down
7 changes: 7 additions & 0 deletions spec/spec.core.js
Expand Up @@ -116,5 +116,12 @@ describe 'Growl'
args.should.eql ['growlnotify', '-m', '5 passes', '--icon', 'pdf']
end
end

describe 'given several options'
it 'should still work'
Growl.notify('5 new emails', { title: 'Email Client', image: 'Safari', sticky: true })
args.should.eql ['growlnotify', '-m', '5 new emails', '--appIcon', 'Safari', '--sticky', 'Email Client']
end
end
end
end

0 comments on commit 055a1f7

Please sign in to comment.