Sha256: c77fad62c5d6aafe03813f2fb1454ea6f211da116d82cd662302106eee858329

Contents?: true

Size: 383 Bytes

Versions: 1

Compression:

Stored size: 383 Bytes

Contents

require_relative 'shared/a_predicate_ast_node'
module Alf
  class Predicate
    describe Factory, 'native' do
      include Factory

      subject{ native(proc) }

      context 'with a proc' do
        let(:proc){ ->{} }

        it_should_behave_like "a predicate AST node"

        it{ should be_a(Native) }

        it{ should eql([:native, proc]) }
      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/factory/test_native.rb