diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-31 08:45:03 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-31 08:45:03 +0000 |
commit | 951b266d2e83ddeee1f096e19d64ce3d46618618 (patch) | |
tree | c3748fc984c0f801366c442b919c1a61c4ecf56b /spec/controllers/admin_public_body_controller_spec.rb | |
parent | bb5d968daf4b31efe488c8a18e2807f75e49c7eb (diff) |
Correct copy-pasto
I am not sure why the tests anyway passed with this mistake, but
clearly those trailing .should's ought not to have been there.
Diffstat (limited to 'spec/controllers/admin_public_body_controller_spec.rb')
-rw-r--r-- | spec/controllers/admin_public_body_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/admin_public_body_controller_spec.rb b/spec/controllers/admin_public_body_controller_spec.rb index 6954e22a1..261f8b695 100644 --- a/spec/controllers/admin_public_body_controller_spec.rb +++ b/spec/controllers/admin_public_body_controller_spec.rb @@ -70,7 +70,7 @@ describe AdminPublicBodyController, "when administering public bodies and paying it "disallows non-authenticated users to do anything" do @request.env["HTTP_AUTHORIZATION"] = "" - n = PublicBody.count.should + n = PublicBody.count post :destroy, { :id => 3 } response.code.should == "401" PublicBody.count.should == n @@ -105,7 +105,7 @@ describe AdminPublicBodyController, "when administering public bodies and paying config['ADMIN_USERNAME'] = 'biz' config['ADMIN_PASSWORD'] = 'fuz' @request.env["HTTP_AUTHORIZATION"] = "" - n = PublicBody.count.should + n = PublicBody.count basic_auth_login(@request, "baduser", "badpassword") post :destroy, { :id => public_bodies(:forlorn_public_body).id } response.code.should == "401" |