spec/spec_helper.rb in cocoapods-keys-2.2.1 vs spec/spec_helper.rb in cocoapods-keys-2.3.0
- old
+ new
@@ -14,14 +14,24 @@
c.filter_run_excluding :requires_clang => true unless clang_available
c.color = true
end
+class FakeKeychainItem
+ attr_accessor :password
+
+ def initialize(password)
+ @password = password
+ end
+end
+
class FakeKeychain
def initialize(data)
@data = data
end
- def [](_, key)
- @data[key]
+ def where(conditions)
+ password = @data[conditions[:account]]
+ item = FakeKeychainItem.new(password)
+ [item]
end
end