Sha256: 193ebfc3e3ee04546722672c1952a99e39cefd66996a5c62cc5386f96fd92669
Contents?: true
Size: 844 Bytes
Versions: 1
Compression:
Stored size: 844 Bytes
Contents
# encoding: UTF-8 require 'spec_helper' include Rosette::Core include Rosette::Core::Validators describe SerializerValidator do let(:repo_name) { 'double_commit' } let(:fixture) { load_repo_fixture(repo_name) } let(:validator) { SerializerValidator.new } let(:config) do Rosette.build_config do |config| config.add_repo(repo_name) do |repo_config| repo_config.set_path(fixture.working_dir.join('.git').to_s) repo_config.add_serializer('my_serializer', format: 'test/test') end end end describe '#valid?' do it 'returns true if the serializer exists' do expect(validator.valid?('test/test', repo_name, config)).to be_truthy end it "returns false if the serializer doesn't exist" do expect(validator.valid?('foo/bar', repo_name, config)).to be_falsy end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rosette-core-1.0.1 | spec/core/validators/serializer_validator_spec.rb |