Skip to content

Commit

Permalink
test growl notification, I check the result from growl, need to add m…
Browse files Browse the repository at this point in the history
…ocks
  • Loading branch information
flyerhzm committed Nov 18, 2010
1 parent 5aee9bb commit e55161c
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
PATH
remote: .
specs:
uniform_notifier (0.0.1)

GEM
remote: http://rubygems.org/
specs:
diff-lcs (1.1.2)
rspec (2.1.0)
rspec-core (~> 2.1.0)
rspec-expectations (~> 2.1.0)
rspec-mocks (~> 2.1.0)
rspec-core (2.1.0)
rspec-expectations (2.1.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.1.0)
ruby-growl (3.0)

PLATFORMS
ruby

DEPENDENCIES
rspec
ruby-growl
uniform_notifier!
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))

require "uniform_notifier"
require "rspec"
9 changes: 9 additions & 0 deletions spec/uniform_notifier/growl_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'spec_helper'

describe UniformNotifier::Growl do

it "should notify growl without password" do
UniformNotifier.growl = true
p UniformNotifier::Growl.out_of_channel_notify('notify growl without password').methods.sort
end
end
3 changes: 3 additions & 0 deletions uniform_notifier.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Gem::Specification.new do |s|
s.description = %q{TODO: Write a gem description}

s.rubyforge_project = "uniform_notifier"

s.add_development_dependency "rspec"
s.add_development_dependency "ruby-growl"

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
Expand Down

0 comments on commit e55161c

Please sign in to comment.