Sha256: d680acb1ee53819c18f5984754b69943b6fe695794724d5ced999ea8a0493ec7

Contents?: true

Size: 331 Bytes

Versions: 15

Compression:

Stored size: 331 Bytes

Contents

require 'spec_helper'

module Ransack
  module Nodes
    describe Condition do

      context 'with multiple values and an _any predicate' do
        subject { Condition.extract(Context.for(Person), 'name_eq_any', Person.first(2).map(&:name)) }

        specify { subject.values.should have(2).values }
      end

    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
ransack-1.2.3 spec/ransack/nodes/condition_spec.rb
ransack-1.2.2 spec/ransack/nodes/condition_spec.rb
ransack-1.2.1 spec/ransack/nodes/condition_spec.rb
ransack-1.2.0 spec/ransack/nodes/condition_spec.rb
ransack-1.1.0 spec/ransack/nodes/condition_spec.rb
ransack-1.0.0 spec/ransack/nodes/condition_spec.rb
ransack-0.7.2 spec/ransack/nodes/condition_spec.rb
ransack-0.7.1 spec/ransack/nodes/condition_spec.rb
ransack_ffcrm-0.7.1 spec/ransack/nodes/condition_spec.rb
ransack-0.7.0 spec/ransack/nodes/condition_spec.rb
ransack_ffcrm-0.6.0 spec/ransack/nodes/condition_spec.rb
ransack-0.6.0 spec/ransack/nodes/condition_spec.rb
ransack-0.5.8 spec/ransack/nodes/condition_spec.rb
ransack-0.5.7 spec/ransack/nodes/condition_spec.rb
ransack-0.5.6 spec/ransack/nodes/condition_spec.rb