Skip to content

Commit

Permalink
update tests to use proper slash in resource helper path
Browse files Browse the repository at this point in the history
  • Loading branch information
rjschie authored and samselikoff committed Apr 23, 2017
1 parent 813e09b commit 25f8f5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration/server/resource-shorthand-test.js
Expand Up @@ -106,7 +106,7 @@ test('resource generates post shorthand', function(assert) {
let done = assert.async(2);

server.resource('contacts');
server.resource('blog-posts', { path: 'posts' });
server.resource('blog-posts', { path: '/posts' });

$.ajax({
method: 'POST',
Expand Down Expand Up @@ -154,7 +154,7 @@ test('resource generates put shorthand', function(assert) {
});

server.resource('contacts');
server.resource('blog-posts', { path: 'posts' });
server.resource('blog-posts', { path: '/posts' });

$.ajax({
method: 'PUT',
Expand Down Expand Up @@ -202,7 +202,7 @@ test('resource generates patch shorthand', function(assert) {
});

server.resource('contacts');
server.resource('blog-posts', { path: 'posts' });
server.resource('blog-posts', { path: '/posts' });

$.ajax({
method: 'PATCH',
Expand Down Expand Up @@ -250,7 +250,7 @@ test('resource generates delete shorthand works', function(assert) {
});

server.resource('contacts');
server.resource('blog-posts', { path: 'posts' });
server.resource('blog-posts', { path: '/posts' });

$.ajax({
method: 'DELETE',
Expand Down Expand Up @@ -294,7 +294,7 @@ test('resource generates shorthands which are whitelisted by :only option', func
});

server.resource('contacts', { only: ['index'] });
server.resource('blog-posts', { path: 'posts', only: ['index'] });
server.resource('blog-posts', { path: '/posts', only: ['index'] });

$.ajax({
method: 'GET',
Expand Down

0 comments on commit 25f8f5b

Please sign in to comment.