We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 228fd56 commit bd7a9f4Copy full SHA for bd7a9f4
Tests/ReactiveSwiftTests/DisposableSpec.swift
@@ -84,6 +84,12 @@ class DisposableSpec: QuickSpec {
84
}
85
86
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
+
93
it("should dispose of the inner disposable upon deinitialization") {
94
let simpleDisposable = SimpleDisposable()
95
0 commit comments