Adding growl glue to Gemfile for better growl alerts with autotest

This commit is contained in:
Jacques Crocker 2010-07-30 17:22:58 -07:00
parent 18dd3a141c
commit 560923f060
3 changed files with 12 additions and 9 deletions

View File

@ -41,6 +41,7 @@ end
group :test do group :test do
gem "autotest" gem "autotest"
gem "growl-glue"
gem 'rspec-rails', '2.0.0.beta.19' gem 'rspec-rails', '2.0.0.beta.19'
gem 'factory_girl_rails' gem 'factory_girl_rails'
gem "pickle", :git => "http://github.com/codegram/pickle.git" gem "pickle", :git => "http://github.com/codegram/pickle.git"

View File

@ -127,6 +127,7 @@ GEM
gherkin (2.1.5) gherkin (2.1.5)
trollop (~> 1.16.2) trollop (~> 1.16.2)
git (1.2.5) git (1.2.5)
growl-glue (1.0.7)
haml (3.0.13) haml (3.0.13)
has_scope (0.5.0) has_scope (0.5.0)
heroku (1.9.13) heroku (1.9.13)
@ -259,6 +260,7 @@ DEPENDENCIES
factory_girl_rails factory_girl_rails
fastthread fastthread
formtastic! formtastic!
growl-glue
haml (= 3.0.13) haml (= 3.0.13)
heroku heroku
httparty (= 0.6.1) httparty (= 0.6.1)

View File

@ -61,34 +61,34 @@ describe Account do
end end
end end
describe 'cross domain authentication' do describe 'cross domain authentication' do
before(:each) do before(:each) do
@account = Factory.build(:account) @account = Factory.build(:account)
@account.stubs(:save).returns(true) @account.stubs(:save).returns(true)
end end
it 'sets a token' do it 'sets a token' do
@account.reset_switch_site_token!.should be_true @account.reset_switch_site_token!.should be_true
@account.switch_site_token.should_not be_empty @account.switch_site_token.should_not be_empty
end end
context 'retrieving an account' do context 'retrieving an account' do
it 'does not find it with an empty token' do it 'does not find it with an empty token' do
Account.find_using_switch_site_token(nil).should be_nil Account.find_using_switch_site_token(nil).should be_nil
end end
it 'raises an exception if not found' do it 'raises an exception if not found' do
lambda { lambda {
Account.find_using_switch_site_token!(nil) Account.find_using_switch_site_token!(nil)
}.should raise_error(Mongoid::Errors::DocumentNotFound) }.should raise_error(Mongoid::Errors::DocumentNotFound)
end end
end end
end end
end end