Sha256: 2fd01be286c9ba468a8bb806b3905b3ff7ec5a237a62b9ce8f3f9152b568ceab
Contents?: true
Size: 691 Bytes
Versions: 3
Compression:
Stored size: 691 Bytes
Contents
require 'spec_helper' module Polygon describe Entry, 'index_files' do let(:entry){ Entry.new(Path.dir, Path.here % Path.dir, options) } subject{ entry.index_files } 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 index files' do subject.should eq(['index.yml', 'index.md']) end end context 'with explicit options' do let(:options){ {:extensions => ["yml", "rb"]} } it 'should contain expected index files' do subject.should eq(['index.yml', 'index.rb']) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polygon-0.10.1 | spec/entry/test_index_files.rb |
polygon-0.10.0 | spec/entry/test_index_files.rb |
polygon-0.9.1 | spec/entry/test_index_files.rb |