-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
we did some authorization debugging earlier, and it seems we left a line commented out by accident.
- Loading branch information
Ivar Nymoen
committed
Jul 28, 2010
1 parent
92f3c9e
commit dfe1647
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
require 'test_helper' | ||
|
||
class VATAccountsControllerTest < ActionController::TestCase | ||
class VatAccountsControllerTest < ActionController::TestCase | ||
|
||
setup do | ||
log_in_as_bob | ||
end | ||
|
||
test "should not display other companies vat accounts" do | ||
get :index | ||
|
||
assert_response :success | ||
assert_template :index | ||
|
||
not_ours = assigns(:vat_accounts).select {|va| va.company != @company} | ||
assert not_ours.empty?, "It seems we're listing #{not_ours.size} vat accounts which belong to another company." | ||
end | ||
|
||
end |