Fix tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-03-25 16:25:59 +02:00
parent d4bfacc365
commit 535339a6ab
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
2 changed files with 1 additions and 13 deletions

View File

@ -100,16 +100,4 @@ describe API::API do
response.status.should == 405
end
end
describe "PUT /projects/:id/issues/:issue_id to test observer on close" do
before { enable_observers }
after { disable_observers }
it "should create an activity event when an issue is closed" do
Event.should_receive(:create)
put api("/projects/#{project.id}/issues/#{issue.id}", user),
state_event: "close"
end
end
end

View File

@ -90,7 +90,7 @@ module TestEnv
size: 12.45
)
ActivityObserver.any_instance.stub(
BaseObserver.any_instance.stub(
current_user: double("current_user", id: 1)
)
end