Sha256: 9a0018a235f095a16afd9134bddca0ce2dde283d01c7e9144e80d3351c32fd06
Contents?: true
Size: 1.87 KB
Versions: 8
Compression:
Stored size: 1.87 KB
Contents
require "#{File.dirname(__FILE__)}/spec_helper" shared_examples_for 'a line count filterable target set' do |target_type, test_data| describe 'line count filters' do it "should filter based on 'lc lt'" do gs = CQL::Repository.new(test_data[:lc_lt][:fixture_location]) expected_results = test_data[:lc_lt][:expected_results] expected_results.each do |number, expected| result = gs.query do select name from target_type with lc lt number end expect(result).to match_array(expected) end end it "should filter based on 'lc_lte'" do gs = CQL::Repository.new(test_data[:lc_lte][:fixture_location]) expected_results = test_data[:lc_lte][:expected_results] expected_results.each do |number, expected| result = gs.query do select name from target_type with lc lte number end expect(result).to match_array(expected) end end it "should filter based on 'lc_gt'" do gs = CQL::Repository.new(test_data[:lc_gt][:fixture_location]) expected_results = test_data[:lc_gt][:expected_results] expected_results.each do |number, expected| result = gs.query do select name from target_type with lc gt number end expect(result).to match_array(expected) end end it "should filter based on 'lc_gte'" do gs = CQL::Repository.new(test_data[:lc_gte][:fixture_location]) expected_results = test_data[:lc_gte][:expected_results] expected_results.each do |number, expected| result = gs.query do select name from target_type with lc gte number end expect(result).to match_array(expected) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems