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-1.2.0 spec/nodes/nadic_bool/test_free_variables.rb
predicate-1.1.3 spec/nodes/nadic_bool/test_free_variables.rb
predicate-1.1.2 spec/nodes/nadic_bool/test_free_variables.rb
predicate-1.1.1 spec/nodes/nadic_bool/test_free_variables.rb
predicate-1.1.0 spec/nodes/nadic_bool/test_free_variables.rb
predicate-1.0.0 spec/nodes/nadic_bool/test_free_variables.rb