From 7ae8f8a48f973bdc05d66a5df4c8c1794f33c930 Mon Sep 17 00:00:00 2001 From: Miguel Michelson Date: Sat, 13 Jul 2024 21:01:51 -0400 Subject: [PATCH] clean for specs --- spec/helpers/admin/categories_helper_spec.rb | 15 ------- spec/requests/admin/categories_spec.rb | 7 --- spec/requests/product_variants_spec.rb | 21 +-------- spec/requests/products_spec.rb | 47 +------------------- 4 files changed, 3 insertions(+), 87 deletions(-) delete mode 100644 spec/helpers/admin/categories_helper_spec.rb delete mode 100644 spec/requests/admin/categories_spec.rb diff --git a/spec/helpers/admin/categories_helper_spec.rb b/spec/helpers/admin/categories_helper_spec.rb deleted file mode 100644 index a668d77..0000000 --- a/spec/helpers/admin/categories_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'rails_helper' - -# Specs in this file have access to a helper object that includes -# the Admin::CategoriesHelper. For example: -# -# describe Admin::CategoriesHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# expect(helper.concat_strings("this","that")).to eq("this that") -# end -# end -# end -RSpec.describe Admin::CategoriesHelper, type: :helper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/requests/admin/categories_spec.rb b/spec/requests/admin/categories_spec.rb deleted file mode 100644 index 1c209d7..0000000 --- a/spec/requests/admin/categories_spec.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'rails_helper' - -RSpec.describe "Admin::Categories", type: :request do - describe "GET /index" do - pending "add some examples (or delete) #{__FILE__}" - end -end diff --git a/spec/requests/product_variants_spec.rb b/spec/requests/product_variants_spec.rb index e27d51c..c624f0e 100644 --- a/spec/requests/product_variants_spec.rb +++ b/spec/requests/product_variants_spec.rb @@ -1,25 +1,8 @@ require 'rails_helper' RSpec.describe "ProductVariants", type: :request do - describe "GET /create" do - it "returns http success" do - get "/product_variants/create" - expect(response).to have_http_status(:success) - end - end - - describe "GET /update" do - it "returns http success" do - get "/product_variants/update" - expect(response).to have_http_status(:success) - end - end - - describe "GET /destroy" do - it "returns http success" do - get "/product_variants/destroy" - expect(response).to have_http_status(:success) - end + describe "GET /index" do + pending "add some examples (or delete) #{__FILE__}" end end diff --git a/spec/requests/products_spec.rb b/spec/requests/products_spec.rb index b358aa5..211b999 100644 --- a/spec/requests/products_spec.rb +++ b/spec/requests/products_spec.rb @@ -2,52 +2,7 @@ RSpec.describe "Products", type: :request do describe "GET /index" do - it "returns http success" do - get "/products/index" - expect(response).to have_http_status(:success) - end - end - - describe "GET /show" do - it "returns http success" do - get "/products/show" - expect(response).to have_http_status(:success) - end - end - - describe "GET /new" do - it "returns http success" do - get "/products/new" - expect(response).to have_http_status(:success) - end - end - - describe "GET /create" do - it "returns http success" do - get "/products/create" - expect(response).to have_http_status(:success) - end - end - - describe "GET /edit" do - it "returns http success" do - get "/products/edit" - expect(response).to have_http_status(:success) - end - end - - describe "GET /update" do - it "returns http success" do - get "/products/update" - expect(response).to have_http_status(:success) - end - end - - describe "GET /destroy" do - it "returns http success" do - get "/products/destroy" - expect(response).to have_http_status(:success) - end + pending "add some examples (or delete) #{__FILE__}" end end