mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-26 22:35:15 +08:00
revert: fix($resource): Route constructor, updated RegExp
This reverts commit 06ed8ef012.
The reverted commit causes regressions. See comments in the PR:
https://github.com/angular/angular.js/pull/1402#issuecomment-12575399
This commit is contained in:
@@ -129,12 +129,6 @@ describe("resource", function() {
|
||||
R.get({a: 'doh@fo o', ':bar': '$baz@1', '!do&h': 'g=a h'});
|
||||
});
|
||||
|
||||
it('should allow relative paths in resource url', function () {
|
||||
var R = $resource(':a');
|
||||
$httpBackend.expect('GET', 'data.json').respond('{}');
|
||||
R.get({ a: 'data.json' });
|
||||
});
|
||||
|
||||
|
||||
it('should encode & in url params', function() {
|
||||
var R = $resource('/Path/:a');
|
||||
|
||||
Reference in New Issue
Block a user