Skip to content

Commit bd7a9f4

Browse files
author
ikesyo
committed
Add failing test
1 parent 228fd56 commit bd7a9f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/ReactiveSwiftTests/DisposableSpec.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ class DisposableSpec: QuickSpec {
8484
}
8585

8686
describe("ScopedDisposable") {
87+
it("should be initialized with an instance of `Disposable` protocol type") {
88+
let d: Disposable = SimpleDisposable()
89+
let scoped = ScopedDisposable(d)
90+
expect(type(of: scoped) == ScopedDisposable<AnyDisposable>.self) == true
91+
}
92+
8793
it("should dispose of the inner disposable upon deinitialization") {
8894
let simpleDisposable = SimpleDisposable()
8995

0 commit comments

Comments
 (0)