summaryrefslogtreecommitdiff
path: root/spec/unit/pops/binder/bindings_validator_factory_spec.rb
blob: c90da799c79d4d2b9425b2aada0dde8f1b5e9f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'spec_helper'
require 'puppet/pops'

describe 'The bindings validator factory' do
  let(:factory) {  Puppet::Pops::Binder::BindingsValidatorFactory.new() }

  it 'should instantiate a BindingsValidatorFactory' do
    factory.class.should == Puppet::Pops::Binder::BindingsValidatorFactory
  end

  it 'should produce label_provider of class BindingsLabelProvider' do
    factory.label_provider.class.should == Puppet::Pops::Binder::BindingsLabelProvider
  end

  it 'should produce validator of class BindingsChecker' do
    factory.validator(Puppet::Pops::Validation::Acceptor.new()).class.should == Puppet::Pops::Binder::BindingsChecker
  end
end