     it "should be a function", ->
       steroids.screen.rotate.should.be.a "function"
 
-    for orientation in orientations then do (orientation) ->
+    for orientation in allOrientations then do (orientation) ->
       it "should rotate to #{orientation}", (done) ->
         setTimeout ->
           steroids.screen.rotate orientation,

    it "should not rotate to unallowed orientations", (done) ->
      steroids.screen.setAllowedRotations "portrait",
        onSuccess: ->
          steroids.screen.rotate "portrait",
            onSuccess: -> done()
            onFailure: (error) ->
              done new Error error
        onFailure: (error) ->

describe "Rotations", ->
  allOrientations = [
    "portraitUpsideDown"
    "landscapeLeft"
    "landscapeRight"
