dustinspecker/generator-ng-poly

View on GitHub
lib/provider/templates/_spec.coffee

Summary

Maintainability
Test Coverage
###global describe, beforeEach, it, expect, inject, module###
'use strict'

describe '<%= upperCamel %>', ->
  provider = undefined

  beforeEach module '<% if (parentModuleName) { %><%= parentModuleName %>.<% } %><%= moduleName %>'

  beforeEach inject (<%= upperCamel %>) ->
    provider = <%= upperCamel %>

  it 'should equal <%= upperCamel %>', ->
    expect(provider).<% if (testFramework === 'mocha') { %>to.equal<% } else { %>toEqual<% } %> '<%= upperCamel %>'