Commit 69decec3fcf8274a0a4ca40220f58be3f5262a9d

Authored by Ryan Jones
1 parent 75a161a9
Exists in master and in 1 other branch production

fix up the test

spec/models/issue_trackers/campfire_tracker_spec.rb
... ... @@ -7,14 +7,17 @@ describe IssueTrackers::CampfireTracker do
7 7 tracker = Fabricate :campfire_tracker
8 8  
9 9 # stub out campy methods
10   - Campy::Room.stub(:new).and_return(tracker)
11   - tracker.stub(:paste) { true }
  10 + campy = mock('CampfireTracker')
  11 + Campy::Room.stub(:new).and_return(campy)
  12 + campy.stub(:paste) { true }
12 13  
13   - # make sure campy received a message to send to campfire
14   - tracker.should_receive(:paste)
  14 + # expectations
  15 + campy.should_receive(:paste).once.with(/errbit|production|foo#bar/).and_return(true)
15 16  
16 17 # create the issue
17 18 tracker.create_issue(notice.problem)
18 19 end
  20 +
  21 +
19 22 end
20 23  
... ...