Commit 535339a6ab756b0bfb1164afb764acef6e1f46af
1 parent
d4bfacc3
Exists in
spb-stable
and in
3 other branches
Fix tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
2 changed files
with
1 additions
and
13 deletions
Show diff stats
spec/requests/api/issues_spec.rb
| @@ -100,16 +100,4 @@ describe API::API do | @@ -100,16 +100,4 @@ describe API::API do | ||
| 100 | response.status.should == 405 | 100 | response.status.should == 405 |
| 101 | end | 101 | end |
| 102 | end | 102 | end |
| 103 | - | ||
| 104 | - describe "PUT /projects/:id/issues/:issue_id to test observer on close" do | ||
| 105 | - before { enable_observers } | ||
| 106 | - after { disable_observers } | ||
| 107 | - | ||
| 108 | - it "should create an activity event when an issue is closed" do | ||
| 109 | - Event.should_receive(:create) | ||
| 110 | - | ||
| 111 | - put api("/projects/#{project.id}/issues/#{issue.id}", user), | ||
| 112 | - state_event: "close" | ||
| 113 | - end | ||
| 114 | - end | ||
| 115 | end | 103 | end |
spec/support/test_env.rb
| @@ -90,7 +90,7 @@ module TestEnv | @@ -90,7 +90,7 @@ module TestEnv | ||
| 90 | size: 12.45 | 90 | size: 12.45 |
| 91 | ) | 91 | ) |
| 92 | 92 | ||
| 93 | - ActivityObserver.any_instance.stub( | 93 | + BaseObserver.any_instance.stub( |
| 94 | current_user: double("current_user", id: 1) | 94 | current_user: double("current_user", id: 1) |
| 95 | ) | 95 | ) |
| 96 | end | 96 | end |