Sha256: 4f9ad9fb4ed4a725669eb51f846f3b369fa7058bd64a73b4f0ae70f4c1931c6c

Contents?: true

Size: 282 Bytes

Versions: 26

Compression:

Stored size: 282 Bytes

Contents

require 'spec_helper'
class Predicate
  describe NadicBool, "free_variables" do

    subject{ expr.free_variables }

    context "on a complex attribute comparison" do
      let(:expr){ Factory.comp(:neq, :x => :y, :z => 2) }

      it{ should eq([:x, :y, :z]) }
    end

  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
predicate-2.8.0 spec/nodes/nadic_bool/test_free_variables.rb
predicate-2.7.1 spec/nodes/nadic_bool/test_free_variables.rb
predicate-2.7.0 spec/nodes/nadic_bool/test_free_variables.rb
predicate-2.6.0 spec/nodes/nadic_bool/test_free_variables.rb
predicate-2.5.0 spec/nodes/nadic_bool/test_free_variables.rb
predicate-2.4.0 spec/nodes/nadic_bool/test_free_variables.rb
predicate-2.3.3 spec/nodes/nadic_bool/test_free_variables.rb
predicate-2.3.2 spec/nodes/nadic_bool/test_free_variables.rb
predicate-2.3.1 spec/nodes/nadic_bool/test_free_variables.rb
predicate-2.3.0 spec/nodes/nadic_bool/test_free_variables.rb
predicate-2.2.1 spec/nodes/nadic_bool/test_free_variables.rb
predicate-2.2.0 spec/nodes/nadic_bool/test_free_variables.rb
predicate-2.1.0 spec/nodes/nadic_bool/test_free_variables.rb
predicate-2.0.1 spec/nodes/nadic_bool/test_free_variables.rb
predicate-2.0.0 spec/nodes/nadic_bool/test_free_variables.rb
predicate-1.3.4 spec/nodes/nadic_bool/test_free_variables.rb
predicate-1.3.3 spec/nodes/nadic_bool/test_free_variables.rb
predicate-1.3.2 spec/nodes/nadic_bool/test_free_variables.rb
predicate-1.3.1 spec/nodes/nadic_bool/test_free_variables.rb
predicate-1.3.0 spec/nodes/nadic_bool/test_free_variables.rb