Skip to content

Business intelligence made simple

Improved test

Andrew Kane232eb00805c1
diff --git a/test/uploads_test.rb b/test/uploads_test.rb
index 1725d13d..f4b0d978 100644
--- a/test/uploads_test.rb
+++ b/test/uploads_test.rb
@@ -40,8 +40,11 @@ class UploadsTest < ActionDispatch::IntegrationTest
def test_create_duplicate_table
create_upload
assert_response :redirect
+ Blazer::Upload.delete_all
+
create_upload
assert_response :unprocessable_entity
+ assert_match "Table already exists", response.body
end
def test_rename