Skip to content

Commit

Permalink
Stub out logger for tests to avoid errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmcbride committed Nov 10, 2009
1 parent a6d09ae commit 93c046a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/user_spec.rb
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit 93c046a

Please sign in to comment.