Skip to content

Commit

Permalink
clean for specs
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Jul 14, 2024
1 parent c4cac2c commit 7ae8f8a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 87 deletions.
15 changes: 0 additions & 15 deletions spec/helpers/admin/categories_helper_spec.rb

This file was deleted.

7 changes: 0 additions & 7 deletions spec/requests/admin/categories_spec.rb

This file was deleted.

21 changes: 2 additions & 19 deletions spec/requests/product_variants_spec.rb
Original file line number Diff line number Diff line change
@@ -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
47 changes: 1 addition & 46 deletions spec/requests/products_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7ae8f8a

Please sign in to comment.