files_routing_spec.rb revision e8ceec219830407bded84634716d37d45d3a5872
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/oid/action' ).to(repository_id: 'repopath', action: :action, oid: 'oid' ) }
end