Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Travis fix #255

Merged
merged 1 commit into from
Jan 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions tests/directives/fiat_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,15 @@ describe "Fiat Directive", ->
)

describe "updateFiat", ->
beforeEach ->
isoScope.fiat = { currencySymbol: '$', amount: 100 }
isoScope.$root = {
# Travis sometimes breaks with the real thing.
$safeApply: () ->
}

describe "(fail)", ->

beforeEach ->
isoScope.fiat = { currencySymbol: '$', amount: 100 }

afterEach ->
isoScope.updateFiat()
expect(isoScope.fiat).toEqual({ currencySymbol: null, amount: null })
Expand Down