Files
openfoodnetwork/spec/javascripts/unit/darkswarm/controllers/checkout_controller_spec.js.coffee
2014-04-08 18:09:02 +10:00

15 lines
361 B
CoffeeScript

describe "CheckoutCtrl", ->
ctrl = null
scope = null
order = null
beforeEach ->
module("Darkswarm")
order = {}
inject ($controller, $rootScope) ->
scope = $rootScope.$new()
ctrl = $controller 'CheckoutCtrl', {$scope: scope, Order: order}
it "defaults the user accordion to visible", ->
expect(scope.user).toEqual true