files_routing_spec.rb revision 46dd7ca898be6d5dbdfda64fd90ce01e253c0878
require 'spec_helper'
#it { should route(:get, 'repopath/some/path' ).to(repository_id: 'repopath', action: :files, path: 'some/path') }
it { should route(:get, 'repositories/repopath/files/new' ).to(repository_id: 'repopath', action: :new ) }
it { should route(:post, 'repositories/repopath/files' ).to(repository_id: 'repopath', action: :create ) }
it { should route(:get, 'repositories/repopath/12ab/action' ).to(repository_id: 'repopath', action: :action, ref: '12ab' ) }
it { should route(:get, 'repositories/repopath/12ab/files/some/path' ).to(repository_id: 'repopath', action: :files, ref: '12ab', path: 'some/path' ) }
end