files_routing_spec.rb revision 46dd7ca898be6d5dbdfda64fd90ce01e253c0878
98N/Arequire 'spec_helper'
606N/A
98N/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') }
98N/A
98N/A it { should route(:get, 'repositories/repopath/files/new' ).to(repository_id: 'repopath', action: :new ) }
98N/A it { should route(:post, 'repositories/repopath/files' ).to(repository_id: 'repopath', action: :create ) }
98N/A it { should route(:get, 'repositories/repopath/12ab/action' ).to(repository_id: 'repopath', action: :action, ref: '12ab' ) }
98N/A it { should route(:get, 'repositories/repopath/12ab/files/some/path' ).to(repository_id: 'repopath', action: :files, ref: '12ab', path: 'some/path' ) }
98N/Aend
98N/A