From ee109bb321bb829b1d8c527c8aa9d28dbd9638a0 Mon Sep 17 00:00:00 2001
From: kd00506 <kd00506@surrey.ac.uk>
Date: Sat, 28 Nov 2020 17:09:11 +0000
Subject: [PATCH] Cleaned more test stuff

---
 test/fixtures/.keep          |  0
 test/fixtures/files/.keep    |  0
 test/fixtures/lists.yml      |  9 -------
 test/fixtures/products.yml   | 13 ---------
 test/fixtures/users.yml      | 11 --------
 test/helpers/.keep           |  0
 test/integration/.keep       |  0
 test/models/.keep            |  0
 test/models/list_test.rb     |  7 -----
 test/models/product_test.rb  |  7 -----
 test/models/user_test.rb     |  7 -----
 test/system/.keep            |  0
 test/system/lists_test.rb    | 45 -------------------------------
 test/system/products_test.rb | 51 ------------------------------------
 test/system/users_test.rb    | 47 ---------------------------------
 15 files changed, 197 deletions(-)
 delete mode 100644 test/fixtures/.keep
 delete mode 100644 test/fixtures/files/.keep
 delete mode 100644 test/fixtures/lists.yml
 delete mode 100644 test/fixtures/products.yml
 delete mode 100644 test/fixtures/users.yml
 delete mode 100644 test/helpers/.keep
 delete mode 100644 test/integration/.keep
 delete mode 100644 test/models/.keep
 delete mode 100644 test/models/list_test.rb
 delete mode 100644 test/models/product_test.rb
 delete mode 100644 test/models/user_test.rb
 delete mode 100644 test/system/.keep
 delete mode 100644 test/system/lists_test.rb
 delete mode 100644 test/system/products_test.rb
 delete mode 100644 test/system/users_test.rb

diff --git a/test/fixtures/.keep b/test/fixtures/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/test/fixtures/lists.yml b/test/fixtures/lists.yml
deleted file mode 100644
index 1903198..0000000
--- a/test/fixtures/lists.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
-
-one:
-  name: Asda
-  user: one
-
-two:
-  name: Tesco
-  user: one
diff --git a/test/fixtures/products.yml b/test/fixtures/products.yml
deleted file mode 100644
index 9caf70d..0000000
--- a/test/fixtures/products.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
-
-one:
-  name: Food
-  quantity: 1
-  acquired: false
-  list: one
-
-two:
-  name: Drink
-  quantity: 2
-  acquired: false
-  list: one
diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml
deleted file mode 100644
index e72fd4c..0000000
--- a/test/fixtures/users.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
-
-one:
-  name: Kieran
-  email: kieran@gmail.com
-  password: pass
-
-two:
-  name: Dave
-  email: dave@gmail.com
-  password: word
diff --git a/test/helpers/.keep b/test/helpers/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/test/integration/.keep b/test/integration/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/test/models/.keep b/test/models/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/test/models/list_test.rb b/test/models/list_test.rb
deleted file mode 100644
index 67687ce..0000000
--- a/test/models/list_test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class ListTest < ActiveSupport::TestCase
-  # test "the truth" do
-  #   assert true
-  # end
-end
diff --git a/test/models/product_test.rb b/test/models/product_test.rb
deleted file mode 100644
index 211cdd0..0000000
--- a/test/models/product_test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class ProductTest < ActiveSupport::TestCase
-  # test "the truth" do
-  #   assert true
-  # end
-end
diff --git a/test/models/user_test.rb b/test/models/user_test.rb
deleted file mode 100644
index 82f61e0..0000000
--- a/test/models/user_test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class UserTest < ActiveSupport::TestCase
-  # test "the truth" do
-  #   assert true
-  # end
-end
diff --git a/test/system/.keep b/test/system/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/test/system/lists_test.rb b/test/system/lists_test.rb
deleted file mode 100644
index da0c99e..0000000
--- a/test/system/lists_test.rb
+++ /dev/null
@@ -1,45 +0,0 @@
-require "application_system_test_case"
-
-class ListsTest < ApplicationSystemTestCase
-  setup do
-    @list = lists(:one)
-  end
-
-  test "visiting the index" do
-    visit lists_url
-    assert_selector "h1", text: "Lists"
-  end
-
-  test "creating a List" do
-    visit lists_url
-    click_on "New List"
-
-    fill_in "Name", with: @list.name
-    fill_in "User", with: @list.user_id
-    click_on "Create List"
-
-    assert_text "List was successfully created"
-    click_on "Back"
-  end
-
-  test "updating a List" do
-    visit lists_url
-    click_on "Edit", match: :first
-
-    fill_in "Name", with: @list.name
-    fill_in "User", with: @list.user_id
-    click_on "Update List"
-
-    assert_text "List was successfully updated"
-    click_on "Back"
-  end
-
-  test "destroying a List" do
-    visit lists_url
-    page.accept_confirm do
-      click_on "Destroy", match: :first
-    end
-
-    assert_text "List was successfully destroyed"
-  end
-end
diff --git a/test/system/products_test.rb b/test/system/products_test.rb
deleted file mode 100644
index ebecfe1..0000000
--- a/test/system/products_test.rb
+++ /dev/null
@@ -1,51 +0,0 @@
-require "application_system_test_case"
-
-class ProductsTest < ApplicationSystemTestCase
-  setup do
-    @product = products(:one)
-  end
-
-  test "visiting the index" do
-    visit products_url
-    assert_selector "h1", text: "Products"
-  end
-
-  test "creating a Product" do
-    visit products_url
-    click_on "New Product"
-
-    check "Accuired" if @product.accuired
-    fill_in "List", with: @product.list
-    fill_in "Name", with: @product.name
-    fill_in "Price", with: @product.price
-    fill_in "Quantity", with: @product.quantity
-    click_on "Create Product"
-
-    assert_text "Product was successfully created"
-    click_on "Back"
-  end
-
-  test "updating a Product" do
-    visit products_url
-    click_on "Edit", match: :first
-
-    check "Accuired" if @product.accuired
-    fill_in "List", with: @product.list
-    fill_in "Name", with: @product.name
-    fill_in "Price", with: @product.price
-    fill_in "Quantity", with: @product.quantity
-    click_on "Update Product"
-
-    assert_text "Product was successfully updated"
-    click_on "Back"
-  end
-
-  test "destroying a Product" do
-    visit products_url
-    page.accept_confirm do
-      click_on "Destroy", match: :first
-    end
-
-    assert_text "Product was successfully destroyed"
-  end
-end
diff --git a/test/system/users_test.rb b/test/system/users_test.rb
deleted file mode 100644
index 3e20a0f..0000000
--- a/test/system/users_test.rb
+++ /dev/null
@@ -1,47 +0,0 @@
-require "application_system_test_case"
-
-class UsersTest < ApplicationSystemTestCase
-  setup do
-    @user = users(:one)
-  end
-
-  test "visiting the index" do
-    visit users_url
-    assert_selector "h1", text: "Users"
-  end
-
-  test "creating a User" do
-    visit users_url
-    click_on "New User"
-
-    fill_in "Email", with: @user.email
-    fill_in "Name", with: @user.name
-    fill_in "Password", with: @user.password
-    click_on "Create User"
-
-    assert_text "User was successfully created"
-    click_on "Back"
-  end
-
-  test "updating a User" do
-    visit users_url
-    click_on "Edit", match: :first
-
-    fill_in "Email", with: @user.email
-    fill_in "Name", with: @user.name
-    fill_in "Password", with: @user.password
-    click_on "Update User"
-
-    assert_text "User was successfully updated"
-    click_on "Back"
-  end
-
-  test "destroying a User" do
-    visit users_url
-    page.accept_confirm do
-      click_on "Destroy", match: :first
-    end
-
-    assert_text "User was successfully destroyed"
-  end
-end
-- 
GitLab