Skip to content

Commit 15ebd55

Browse files
svenweyKagemaru
authored andcommitted
add test that tests if another ordert responsible can't make changes to invoices
1 parent 838ac85 commit 15ebd55

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/integration/list_invoices_test.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ class ListInvoicesTest < ActionDispatch::IntegrationTest
1818
end
1919
end
2020

21+
test 'list invoices as employee which is order responsible for another order has no create/edit/destroy links' do
22+
timeout_safe do
23+
list_invoices_as :lucien
24+
25+
assert has_no_link?('Erstellen')
26+
assert has_no_link?('Bearbeiten')
27+
assert has_no_link?('Löschen')
28+
end
29+
end
30+
2131
test 'list invoices as order responsible member has create/edit/destroy links' do
2232
timeout_safe do
2333
list_invoices_as :long_time_john

0 commit comments

Comments
 (0)