Improve testing setup

This commit is contained in:
Brandon Robins
2018-03-11 16:38:50 -05:00
parent 19290d3832
commit 2ce668b9ea
9 changed files with 163 additions and 76 deletions

View File

@@ -46,5 +46,19 @@ RSpec.describe 'Resource' do
expect(resource.dav_compliance).to eq('1, 2, 3')
end
end
describe '#enable_extended_mkcol?' do
it 'is not enabled by default' do
resource = Calligraphy::Resource.new
expect(resource.enable_extended_mkcol?).to eq(false)
end
end
describe '#valid_resourcetypes' do
it 'returns only a collection resourcetype by default' do
resource = Calligraphy::Resource.new
expect(resource.valid_resourcetypes).to match_array(['collection'])
end
end
end
end