Sha256: 3996ddbc3543cb6acf0f4347e51014ebbc8aad9c254353359da935f6b7104023
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
module Polytrix describe Manifest do describe '#from_yaml' do subject(:manifest) { described_class.from_yaml 'spec/fixtures/polytrix_tests.yml' } it 'initializes a manifest' do expect(manifest).to be_an_instance_of Polytrix::Manifest end it 'processes ERB' do expect(manifest.global_env['LOCALE']).to eq(ENV['LANG']) end it 'parses global_env' do expect(manifest.global_env).to be_an_instance_of Polytrix::Manifest::Environment end it 'parses suites' do expect(manifest.suites).to be_an_instance_of Polytrix::Manifest::Suites end describe '#find_suite' do before(:each) do Polytrix.configuration.test_manifest = 'samples/polytrix_tests.yml' end it 'returns nil if no suite matches' do suite = subject.find_suite('none') expect(suite).to be_nil end it 'returns the suite if one is found' do suite = subject.find_suite('Katas') expect(suite).to be_an_instance_of Polytrix::Manifest::Suite end it 'is not case sensitive' do suite = subject.find_suite('katas') expect(suite).to be_an_instance_of Polytrix::Manifest::Suite end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polytrix-0.1.0.pre | spec/polytrix/manifest_spec.rb |