Sha256: 46385e2e99d934cea9c901b67967e1cd1193f9a7ad5b6b0ad9773fd8c0d093ec

Contents?: true

Size: 486 Bytes

Versions: 19

Compression:

Stored size: 486 Bytes

Contents

describe "Joosy", ->

  it "loads", ->
    expect(Joosy).toBeDefined()

  it "keeps environment clean", ->
    result = false
    ghetto = {}

    runs ->
      $.ajax
        url: '../build/joosy.js'
        dataType: 'text'
        success: (script) ->
          (new Function( "with(this) { " + script + "}")).call(ghetto)
          result = true

    waitsFor (-> result), 'Unable to download Joosy', 1000

    runs ->
      expect(Object.keys ghetto).toEqual ['Joosy', 'Metamorph']

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
joosy-1.2.0.alpha.73 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.71 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.70 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.68 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.67 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.66 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.65 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.64 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.63 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.62 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.59 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.58 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.57 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.56 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.55 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.54 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.53 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.52 spec/joosy/environments/global_spec.coffee
joosy-1.2.0.alpha.51 spec/joosy/environments/global_spec.coffee