Skip to content

Commit 1f7e7af

Browse files
committed
Use realistic index doc in spec
1 parent 10162bb commit 1f7e7af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/helpers/pageflow/panorama/packages_helper_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ module Panorama
3030
end
3131

3232
it 'should return the packages index document path' do
33-
panorama_package_file = create_used_file(:package)
33+
panorama_package_file = create_used_file(:package, index_document: 'index.html')
3434
configuration = {
3535
'panorama_package_id' => panorama_package_file.perma_id
3636
}
3737

3838
url = helper.panorama_url(configuration)
39-
expect(url).to match(/#{panorama_package_file.id}\/unpacked\/#{panorama_package_file.id}/)
39+
expect(url).to match(/#{panorama_package_file.id}\/unpacked\/index.html/)
4040
end
4141
end
4242
end

0 commit comments

Comments
 (0)