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
gem "autotest"
gem "growl-glue"
gem 'rspec-rails', '2.0.0.beta.19'
gem 'factory_girl_rails'
gem "pickle", :git => "http://github.com/codegram/pickle.git"

View File

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

View File

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