         let spinner = SpinnerView.showSpinner(inView: view)
         spinner.dismiss()
         let hasSpinner = view.subviews.contains {$0 is Spinner}
-        XCTAssertFalse(hasSpinner && view.isUserInteractionEnabled)
+        XCTAssertFalse(hasSpinner)
+        XCTAssertTrue(view.isUserInteractionEnabled)
     }
     
     func testShowCustomSpinnerInView() {
-         view.isUserInteractionEnabled = true
+        view.isUserInteractionEnabled = true
         _ = SpinnerView.showCustomSpinner(inView: view)
-         let hasSpinner = view.subviews.contains {$0 is Spinner}
+        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 hasSpinner = view.subviews.contains {$0 is Spinner}
+        XCTAssertFalse(hasSpinner)
+        XCTAssertTrue(view.isUserInteractionEnabled)
     }
     
 }

        let spinner = SpinnerView.showSpinner(inButton: button)
        spinner.dismiss()
        let hasSpinner = button.subviews.contains {$0 is Spinner}
        XCTAssertFalse(hasSpinner && button.isUserInteractionEnabled)
        let titleColorRed = button.titleColor(for: UIControlState.normal) == UIColor.red
        XCTAssertTrue(titleColorRed)
    }

        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)
