Skip to content

Commit

Permalink
fix(test): update tests to match service files
Browse files Browse the repository at this point in the history
Change service name in test to use classify instead of camelize

Closes #338
Closes #354
  • Loading branch information
eddiemonge authored and passy committed Sep 12, 2013
1 parent bc1e68e commit c30464c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions templates/coffeescript-min/spec/service.coffee
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
'use strict'

describe 'Service: <%= _.camelize(name) %>', () ->
describe 'Service: <%= _.classify(name) %>', () ->

# load the service's module
beforeEach module '<%= _.camelize(appname) %>App'
beforeEach module '<%= _.classify(appname) %>App'

# instantiate service
<%= _.camelize(name) %> = {}
beforeEach inject (_<%= _.camelize(name) %>_) ->
<%= _.camelize(name) %> = _<%= _.camelize(name) %>_
<%= _.classify(name) %> = {}
beforeEach inject (_<%= _.classify(name) %>_) ->
<%= _.classify(name) %> = _<%= _.classify(name) %>_

it 'should do something', () ->
expect(!!<%= _.camelize(name) %>).toBe true
expect(!!<%= _.classify(name) %>).toBe true
12 changes: 6 additions & 6 deletions templates/coffeescript/spec/service.coffee
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
'use strict'

describe 'Service: <%= _.camelize(name) %>', () ->
describe 'Service: <%= _.classify(name) %>', () ->

# load the service's module
beforeEach module '<%= _.camelize(appname) %>App'
beforeEach module '<%= _.classify(appname) %>App'

# instantiate service
<%= _.camelize(name) %> = {}
beforeEach inject (_<%= _.camelize(name) %>_) ->
<%= _.camelize(name) %> = _<%= _.camelize(name) %>_
<%= _.classify(name) %> = {}
beforeEach inject (_<%= _.classify(name) %>_) ->
<%= _.classify(name) %> = _<%= _.classify(name) %>_

it 'should do something', () ->
expect(!!<%= _.camelize(name) %>).toBe true
expect(!!<%= _.classify(name) %>).toBe true
12 changes: 6 additions & 6 deletions templates/javascript-min/spec/service.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
'use strict';

describe('Service: <%= _.camelize(name) %>', function () {
describe('Service: <%= _.classify(name) %>', function () {

// load the service's module
beforeEach(module('<%= _.camelize(appname) %>App'));
beforeEach(module('<%= _.classify(appname) %>App'));

// instantiate service
var <%= _.camelize(name) %>;
beforeEach(inject(function(_<%= _.camelize(name) %>_) {
<%= _.camelize(name) %> = _<%= _.camelize(name) %>_;
var <%= _.classify(name) %>;
beforeEach(inject(function(_<%= _.classify(name) %>_) {
<%= _.classify(name) %> = _<%= _.classify(name) %>_;
}));

it('should do something', function () {
expect(!!<%= _.camelize(name) %>).toBe(true);
expect(!!<%= _.classify(name) %>).toBe(true);
});

});
12 changes: 6 additions & 6 deletions templates/javascript/spec/service.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
'use strict';

describe('Service: <%= _.camelize(name) %>', function () {
describe('Service: <%= _.classify(name) %>', function () {

// load the service's module
beforeEach(module('<%= _.camelize(appname) %>App'));
beforeEach(module('<%= _.classify(appname) %>App'));

// instantiate service
var <%= _.camelize(name) %>;
beforeEach(inject(function (_<%= _.camelize(name) %>_) {
<%= _.camelize(name) %> = _<%= _.camelize(name) %>_;
var <%= _.classify(name) %>;
beforeEach(inject(function (_<%= _.classify(name) %>_) {
<%= _.classify(name) %> = _<%= _.classify(name) %>_;
}));

it('should do something', function () {
expect(!!<%= _.camelize(name) %>).toBe(true);
expect(!!<%= _.classify(name) %>).toBe(true);
});

});

0 comments on commit c30464c

Please sign in to comment.