         button.setTitleColor(UIColor.blue, for: UIControlState.normal)
         spinner.dismiss()
         let hasSpinner = button.subviews.contains {$0 is Spinner}
-        XCTAssertFalse(hasSpinner && button.isUserInteractionEnabled)
+        XCTAssertFalse(hasSpinner)
+        XCTAssertTrue(button.isUserInteractionEnabled)
         let titleColorBlue = button.titleColor(for: UIControlState.normal) == UIColor.blue
         XCTAssertTrue(titleColorBlue)
     }

        let spinner = SpinnerView.showSpinner(inView: view)
        spinner.dismiss()
        let hasSpinner = view.subviews.contains {$0 is Spinner}
        XCTAssertFalse(hasSpinner && view.isUserInteractionEnabled)
    }
    
    func testShowCustomSpinnerInView() {
         view.isUserInteractionEnabled = true
        _ = SpinnerView.showCustomSpinner(inView: view)
         let hasSpinner = view.subviews.contains {$0 is Spinner}
        XCTAssert(hasSpinner && !view.isUserInteractionEnabled)
    }
    
    func testDismissCustomSpinnerInView() {
        let spinner = SpinnerView.showCustomSpinner(inView: view)
        spinner.dismiss()
         let hasSpinner = view.subviews.contains {$0 is Spinner}
        XCTAssertFalse(hasSpinner && view.isUserInteractionEnabled)
    }
    
}

        let spinner = SpinnerView.showSpinner(inButton: button)
        spinner.dismiss()
        let hasSpinner = button.subviews.contains {$0 is Spinner}
        XCTAssertFalse(hasSpinner)
        XCTAssertTrue(!button.isUserInteractionEnabled)
    }
    
    func testShowSpinnerInView() {
        view.isUserInteractionEnabled = true
        _ = SpinnerView.showSpinner(inView: view)
