         }
         
         let controller = LKAlertController(style: .Alert)
-            .addAction("Okay", style: .Default, preferredAction: false, handler: handler).addAction("Cancel", style: .Cancel, handler: handler)
+            .addAction("Okay", style: .Default, handler: handler).addAction("Cancel", style: .Cancel, handler: handler)
             .getAlertController()
         
         XCTAssertEqual(controller.actions.count, 2, "The number of actions was incorrect")

        
        waitForExpectationsWithTimeout(0.5, handler: nil)
    }
	
	func testNevermindExtension() {
		let expectation = expectationWithDescription("Nevermind Extension")
		
		LKAlertController.overrideShowForTesting { (style, title, message, actions, fields) -> Void in
			XCTAssertEqual(actions.count, 1, "Incorrect number of buttons")
			XCTAssertEqual(style, UIAlertControllerStyle.Alert, "Incorrect Style of the alert")
			
			if let button = actions.first as? UIAlertAction {
				XCTAssertEqual(button.title, "Nevermind", "Incorrect title of button")
			}
			else {
				XCTFail("No button")
			}
			
			expectation.fulfill()
		}
		
		Alert().showNevermind()
		
		waitForExpectationsWithTimeout(0.5, handler: nil)
	}
}


extension Alert {
	///Shortcut method for adding a nevermind button and showing the alert
	public func showNevermind() {
		super.addAction("Nevermind", style: .Cancel, handler: nil, preferredAction: false)
		show()
	}
}

        
        waitForExpectationsWithTimeout(0.5, handler: nil)
    }
    
    func testNevermindExtension() {
        let expectation = expectationWithDescription("Nevermind Extension")
        
        LKAlertController.overrideShowForTesting { (style, title, message, actions, fields) -> Void in
            XCTAssertEqual(actions.count, 1, "Incorrect number of buttons")
            XCTAssertEqual(style, UIAlertControllerStyle.Alert, "Incorrect Style of the alert")
            
            if let button = actions.first as? UIAlertAction {
                XCTAssertEqual(button.title, "Nevermind", "Incorrect title of button")
            }
            else {
                XCTFail("No button")
            }
            
            expectation.fulfill()
        }
        
        Alert().showNevermind()
        
        waitForExpectationsWithTimeout(0.5, handler: nil)
    }
}


