Sha256: a79e3aeb20e1d1c783f207dccb50f65736d38d8b7a239cc02b93c9c4a51072f3

Contents?: true

Size: 344 Bytes

Versions: 26

Compression:

Stored size: 344 Bytes

Contents

require_relative 'shared/a_predicate_ast_node'
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

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
predicate-1.2.0 spec/factory/test_native.rb
predicate-1.1.3 spec/factory/test_native.rb
predicate-1.1.2 spec/factory/test_native.rb
predicate-1.1.1 spec/factory/test_native.rb
predicate-1.1.0 spec/factory/test_native.rb
predicate-1.0.0 spec/factory/test_native.rb