Sha256: 22ddf23e67102ed3aa92167cfe96025cbb1530c2a9076a47c38f93ab5d84e1a7

Contents?: true

Size: 425 Bytes

Versions: 6

Compression:

Stored size: 425 Bytes

Contents

describe "Controller: MainCtrl", () ->

  MainCtrl = {}
  scope = {}

  beforeEach(module('<%= application_name %>'))
  MainCtrl = {}
  scope = {}
  beforeEach(inject( ($rootScope, $controller) ->

    scope = $rootScope.$new()
    MainCtrl = $controller( 'MainCtrl', {
          $scope: scope
    })
    
  ))
  
  it "should attach a list of awesomeThings to the scope", () ->
    expect(scope.awesomeThings.length).toBe(3)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
angular_velocity-1.0.0 lib/generators/angular_velocity/install/templates/main_controller_spec.coffee
angular_velocity-0.0.6alpha lib/generators/angular_velocity/install/templates/main_controller_spec.coffee
angular_velocity-0.0.5alpha lib/generators/angular_velocity/install/templates/main_controller_spec.coffee
angular_velocity-0.0.4alpha lib/generators/angular_velocity/install/templates/main_controller_spec.coffee
angular_velocity-0.0.3alpha lib/generators/angular_velocity/install/templates/main_controller_spec.coffee
angular_velocity-0.0.2alpha lib/generators/angular_velocity/install/templates/main_controller_spec.coffee