files_routing_spec.rb revision ef1f1ad3d88023d93475dfdce00bd9f230917660
98N/Arequire 'spec_helper'
98N/A
1506N/Adescribe FilesController do
98N/A # FIXME some/path must exist in repository
98N/A #it { should route(:get, 'repopath/some/path' ).to(repository_id: 'repopath', action: :files, path: 'some/path') }
919N/A
919N/A it { should route(:get, 'repopath' ).to(repository_id: 'repopath', action: :files ) }
919N/A it { should route(:get, 'repositories/repopath/files/new' ).to(repository_id: 'repopath', action: :new ) }
919N/A it { should route(:post, 'repositories/repopath/files' ).to(repository_id: 'repopath', action: :create ) }
919N/A it { should route(:get, 'repositories/repopath/12ab/action' ).to(repository_id: 'repopath', action: :action, ref: '12ab' ) }
919N/A it { should route(:get, 'repositories/repopath/12ab/files/some/path' ).to(repository_id: 'repopath', action: :files, ref: '12ab', path: 'some/path' ) }
919N/Aend
919N/A