Sha256: 101181c5c504b09fee7ff0f1017a5590f3670df2bb937a775d1c1c0d8b1d5446
Contents?: true
Size: 663 Bytes
Versions: 3
Compression:
Stored size: 663 Bytes
Contents
require 'spec_helper' module Polygon describe Entry, 'extensions' do let(:entry){ Entry.new(Path.dir, Path.here % Path.dir, options) } subject{ entry.extensions } before do subject.should be_a(Array) subject.all?{|e| e.should be_a(String) } end context 'with default options' do let(:options){ {} } it 'should contain expected extensions' do subject.should eq(['yml', 'md']) end end context 'with explicit options' do let(:options){ {:extensions => ["yml", "rb"]} } it 'should contain expected extensions' do subject.should eq(['yml', 'rb']) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polygon-0.10.1 | spec/entry/test_extensions.rb |
polygon-0.10.0 | spec/entry/test_extensions.rb |
polygon-0.9.1 | spec/entry/test_extensions.rb |