Commit 4350440e4b11ab67dccd03cdf4d78064cf60630b
Committed by
Caio
1 parent
16914728
Exists in
master
and in
29 other branches
[Mezuro] fixed sintax error on project client test
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
plugins/mezuro/test/unit/kalibro/client/project_client_test.rb
@@ -19,8 +19,7 @@ class ProjectClientTest < ActiveSupport::TestCase | @@ -19,8 +19,7 @@ class ProjectClientTest < ActiveSupport::TestCase | ||
19 | 19 | ||
20 | should 'raise error when project doesnt exist' do | 20 | should 'raise error when project doesnt exist' do |
21 | request_body = {:project_name => @project.name} | 21 | request_body = {:project_name => @project.name} |
22 | - @port.expects(:request).with(:get_project, request_body) | ||
23 | - .raises(Exception.new("(S:Server) There is no project named " + @project.name)) | 22 | + @port.expects(:request).with(:get_project, request_body).raises(Exception.new("(S:Server) There is no project named " + @project.name)) |
24 | assert_nil Kalibro::Client::ProjectClient.project(@project.name) | 23 | assert_nil Kalibro::Client::ProjectClient.project(@project.name) |
25 | end | 24 | end |
26 | 25 |