rugular 0.8.7 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8d74a9e398b04071e03b89dc8f4c0d4ecde77e0
4
- data.tar.gz: 1b821582e6409faf2213060afce1c4ca6dc7d8c2
3
+ metadata.gz: e5f48107191ea322aa2d1538b45ee453c638a71f
4
+ data.tar.gz: 6e57b10629f6e1cc8bd348fcd9fb9bc5c74d4768
5
5
  SHA512:
6
- metadata.gz: 5826c34900a237e135b882adc6cf37eaf19e470b2f9396ab9a75dede8ed4af5a705efb4d973b8bdc7e9757cc29074ee0841580d42cea1faace0e3277ddbe6fc1
7
- data.tar.gz: 92c55f2fa5a0d27786bec5e73a64156e18b2710b17d5bdc6368024df7ffc208a58ce7373ae59bca42abb8d85ca6393618ebee0f57d2ed4c24b2fe6f6bdeb2a08
6
+ metadata.gz: 81cf22fd329eb700ed88f376fdc073c80057015986e23ef4739d6d2b91a59b2b8c3217f3407421402d051407a206e65589d91d20634fd27e3cce5d1fd168998f
7
+ data.tar.gz: 07a5605f5f31fa252767dfacfbe32e7c702f08102f085b2e47a30d31edc3b8ac4074ceaf6db76e5c374a288bc3d000667b444d0a089506ee98663089dee3e033
@@ -4,7 +4,7 @@ module.exports = function (config) {
4
4
  // base path that will be used to resolve all patterns (eg. files, exclude)
5
5
  basePath: './',
6
6
 
7
- frameworks: ['jasmine', 'chai', 'sinon', 'chai-sinon'],
7
+ frameworks: ['jasmine', 'sinon'],
8
8
 
9
9
  preprocessors: {
10
10
  '**/*.coffee': ['coffee']
@@ -1,18 +1,18 @@
1
- describe 'AppController', ->
2
- controller = undefined
3
- beforeEach ->
4
- module 'app', ($provide) ->
5
- specHelper.fakeStateProvider $provide
6
- specHelper.fakeLogger $provide
1
+ describe '<%= camelcase_name %>Controller', ->
2
+ beforeEach module('auth')
7
3
 
8
- specHelper.injector ($controller, $q, $rootScope) ->
4
+ $controller = undefined
9
5
 
10
- controller = $controller('AppController')
6
+ beforeEach inject((_$controller_) ->
7
+ # The injector unwraps the underscores (_) from around the parameter names when matching
8
+ $controller = _$controller_
11
9
 
12
- it 'creates', ->
13
- expect(controller).to.be.defined
10
+ return
11
+ )
14
12
 
15
- it 'has title', ->
16
- expect(controller.title).to.equal 'App'
13
+ describe 'this.title', ->
14
+ it 'is initially set to "auth"', ->
15
+ controller = $controller('<%= camelcase_name %>Controller')
16
+ expect(controller.title).toEqual '<%= camelcase_name %>'
17
+ return
17
18
 
18
- specHelper.verifyNoOutstandingHttpRequests()
@@ -1,19 +1,18 @@
1
1
  describe '<%= camelcase_name %>Controller', ->
2
- controller = undefined
3
- beforeEach ->
4
- module '<%= camelcase_name %>', ($provide) ->
5
- specHelper.fakeStateProvider $provide
6
- specHelper.fakeLogger $provide
2
+ beforeEach module('auth')
7
3
 
8
- specHelper.injector ($controller, $q, $rootScope) ->
4
+ $controller = undefined
9
5
 
10
- controller = $controller('<%= camelcase_name %>Controller')
6
+ beforeEach inject((_$controller_) ->
7
+ # The injector unwraps the underscores (_) from around the parameter names when matching
8
+ $controller = _$controller_
11
9
 
12
- describe '<%= camelcase_name %> controller', ->
13
- it 'should be created successfully', ->
14
- expect(controller).to.be.defined
10
+ return
11
+ )
15
12
 
16
- it 'should have title of <%= name %>', ->
17
- expect(controller.title).to.equal '<%= name %>'
13
+ describe 'this.title', ->
14
+ it 'is initially set to "auth"', ->
15
+ controller = $controller('<%= camelcase_name %>Controller')
16
+ expect(controller.title).toEqual '<%= camelcase_name %>'
17
+ return
18
18
 
19
- specHelper.verifyNoOutstandingHttpRequests()
@@ -1,3 +1,3 @@
1
1
  module Rugular
2
- VERSION = '0.8.7'
2
+ VERSION = '0.9.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rugular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Shook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-18 00:00:00.000000000 Z
11
+ date: 2015-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview