 	}
 	
 	func testButtonTapped() {
-		guard let button1 = ButtonView.create("Test1", color: UIColor.redColor()), let button2 = ButtonView.create("Test2", color: UIColor.blueColor()) else {
+		guard let button1 = ButtonView.create("Test1", color: UIColor.red), let button2 = ButtonView.create("Test2", color: UIColor.blue) else {
 			XCTAssert(false)
 			return
 		}

		
		testButton.selected = true
		XCTAssert(testButton.selected)
		XCTAssert(testButton.colorBar.backgroundColor == UIColor.blueColor())
		XCTAssertFalse(testButton.button.enabled)
		
		testButton.selected = false
		XCTAssertFalse(testButton.selected)
		XCTAssert(testButton.colorBar.backgroundColor == UIColor.grayColor())
		XCTAssert(testButton.button.enabled)
	}
	
	func testIndex() {
		guard let button1 = ButtonView.create("Test1", color: UIColor.redColor()), let button2 = ButtonView.create("Test2", color: UIColor.blueColor()) else {
			XCTAssert(false)
			return
		}

class ButtonBarTests: XCTestCase {
	
	func testButtonView() {
		guard let testButton = ButtonView.create("Testable", color: UIColor.blue) else {
			XCTAssert(false)
			return
		}
