Permalink
Browse files

Stub out logger for tests to avoid errors.

  • Loading branch information...
1 parent a6d09ae commit 93c046aac46323af1126e4b2f000f9305ec41571 @dougmcbride committed Nov 10, 2009
Showing with 9 additions and 0 deletions.
  1. +9 −0 spec/user_spec.rb
View
@@ -3,6 +3,12 @@
require 'pivotal-tracker'
describe "The User class" do
+ before :each do
+ @logger = mock 'logger'
+ @logger.stub! :debug
+ User.logger = @logger
+ end
+
it "should cache users" do
user1 = User.for_nick 'fred'
user2 = User.for_nick 'fred'
@@ -27,6 +33,9 @@
describe "A user" do
before :each do
User.users = {}
+ @logger = mock 'logger'
+ @logger.stub! :debug
+ User.logger = @logger
@user = User.for_nick 'dug'
@the_project = mock 'project'
@the_story_id = '9'

0 comments on commit 93c046a

Please sign in to comment.