Remove product filter helper spec as it's not needed anymore

This commit is contained in:
Gaetan Riou
2020-08-15 12:05:38 +10:00
parent 7356d0fe77
commit c3279941f5

View File

@@ -1,18 +0,0 @@
# frozen_string_literal: true
require 'spec_helper'
describe Spree::Admin::ProductFilterHelper, type: :helper do
describe 'product_filters' do
it 'should return only parameters included in PRODUCT_FILTER' do
parameters = { 'query' => 'test', 'categoryFilter' => 2, 'randomFilter' => 5 }
filters = helper.product_filters(parameters)
puts filters.inspect
expect(filters.key?('query')).to be true
expect(filters.key?('categoryFilter')).to be true
expect(filters.key?('randomFilter')).to be false
end
end
end