Add spec to features/admin/products_spec from spre_auth_devise

This commit is contained in:
luisramos0
2019-07-11 19:44:10 +01:00
parent 791ff842aa
commit eacd76bfa4

View File

@@ -17,6 +17,12 @@ feature '
@enterprise_fees = (0..2).map { |i| create(:enterprise_fee, enterprise: @distributors[i]) }
end
context "as anonymous user" do
it "is redirected to login page when attempting to access product listing" do
expect { visit spree.admin_products_path }.not_to raise_error
end
end
describe "creating a product" do
let!(:tax_category) { create(:tax_category, name: 'Test Tax Category') }