Sha256: 255a41a50686518b3ba69c6c88175e450d8d43a860f2917f6a92c0a72157f5c1
Contents?: true
Size: 361 Bytes
Versions: 1
Compression:
Stored size: 361 Bytes
Contents
require 'minitest/autorun' require_relative 'test_helper' class FilterTest < Minitest::Test def setup @brand = Brand.create!(name: "Adidas") end def teardown Brand.delete_all end def test_simple_filter filters = { 'name.equals' => "Adidas" } brands = Brand.search(filters) assert !brands.any?{|b| b.name != "Adidas" } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hario-0.1.0 | test/filter_test.rb |