Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions rails_application/test/integration/products_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require "test_helper"

class ProductsTest < InMemoryRESIntegrationTestCase
cover "Products*"

def test_add_product_with_worng_vat_rate_code
product_id = SecureRandom.uuid
post "/products",
params: {
"authenticity_token" => "[FILTERED]",
"product_id" => SecureRandom.uuid,
"name" => "Product 1",
"vat_rate" => "50",
}
follow_redirect!
assert_select("#notice", "Selected VAT rate not applicable")
end
end