Sha256: a7157bdcce4b8e62328cae70ff4f4c003bfa9e591427b41a798589a7fdab873b
Contents?: true
Size: 840 Bytes
Versions: 5
Compression:
Stored size: 840 Bytes
Contents
require 'spec_helper' module Alf module Operator::NonRelational describe Compact do let(:operator_class){ Compact } it_should_behave_like("An operator class") let(:input) {[ {:a => "via_method", :time => 1, :b => "b"}, {:a => "via_reader", :time => 3, :b => "b"}, {:a => "via_method", :time => 2, :b => "b"}, {:a => "via_reader", :time => 3, :b => "b"}, {:a => "via_method", :time => 1, :b => "b"}, ]} let(:expected) {[ {:a => "via_method", :time => 1, :b => "b"}, {:a => "via_reader", :time => 3, :b => "b"}, {:a => "via_method", :time => 2, :b => "b"}, ]} subject{ operator.to_a } context "with Lispy" do let(:operator){ Lispy.compact(input) } it { should == expected } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems