diff --git a/test/fixtures/.keep b/test/fixtures/.keep deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/test/fixtures/lists.yml b/test/fixtures/lists.yml deleted file mode 100644 index 190319840ec6e443606b8cf6dd73b647da75c727..0000000000000000000000000000000000000000 --- 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 9caf70d24345567f3cc91e65377f7026d9efd9a5..0000000000000000000000000000000000000000 --- 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 e72fd4c4ee039167e7a69e74b8b34ca7c03f5c5e..0000000000000000000000000000000000000000 --- 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 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/test/integration/.keep b/test/integration/.keep deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/test/models/.keep b/test/models/.keep deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/test/models/list_test.rb b/test/models/list_test.rb deleted file mode 100644 index 67687ce87af66791b8a1213b473727426528d87b..0000000000000000000000000000000000000000 --- 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 211cdd0b4a3f319b433a0b06b2027a8ff8bc63ae..0000000000000000000000000000000000000000 --- 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 82f61e0109663ddb34c9850653978c5280db0d59..0000000000000000000000000000000000000000 --- 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 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/test/system/lists_test.rb b/test/system/lists_test.rb deleted file mode 100644 index da0c99e373f3b5360ca162221dd20f77d4a0b463..0000000000000000000000000000000000000000 --- 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 ebecfe1e216bc835c8087a6de29999f175dde3bb..0000000000000000000000000000000000000000 --- 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 3e20a0f89c1e598e405b92d5008ae2cf30933507..0000000000000000000000000000000000000000 --- 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