Sha256: 151a9d62af8f03a0d8f2334527494545c783ca25bcade1f304a197ba71b5ff1e

Contents?: true

Size: 293 Bytes

Versions: 1

Compression:

Stored size: 293 Bytes

Contents

require 'spec_helper'
module Alf
  class Predicate
    describe Predicate, "to_ruby_literal" do

      subject{ p.to_ruby_literal }

      describe "on a comp(:eq)" do
        let(:p){ Predicate.coerce(:x => 2) }

        it{ should eq("->(t){ t.x == 2 }") }
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-predicate/predicate/test_to_ruby_literal.rb