Skip to content

Commit

Permalink
Change test for bug 0001976
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBraun02 committed Jul 2, 2014
1 parent 98354ef commit 6639fbb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/tests/eressea.lua
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,15 @@ function test_only_building_ownwer_can_set_not_paid()
u2.building = mine
u1:clear_orders()
u2:clear_orders()
u2:add_order("Bezahle nicht")
process_orders()
assert_equal(0, u1:get_item("money"))
u2:clear_orders()
u1:add_item("money", 500)
-- Test that Bezahle nicht is working
u1:add_order("Bezahle nicht")
process_orders()
assert_equal(500, u1:get_item("money"))
u1:clear_orders()
-- Test that bug fix 0001976 is working
-- Bezahle nicht is not working
u2:add_order("Bezahle nicht")
process_orders()
assert_equal(0, u1:get_item("money"))
end

0 comments on commit 6639fbb

Please sign in to comment.