File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1295,6 +1295,11 @@ def exists
1295
1295
return true
1296
1296
end
1297
1297
1298
+ #
1299
+ # Aliases the exists method
1300
+ #
1301
+ alias :exists? :exists
1302
+
1298
1303
# Deprecated
1299
1304
alias_method :get_user_key , :get_api_key
1300
1305
alias_method :list_user_keys , :list_api_keys
Original file line number Diff line number Diff line change @@ -177,12 +177,12 @@ def wait_global_key_missing(key)
177
177
178
178
it "should tell if index exists" do
179
179
@index . add_object! ( { :name => "John Doe" , :email => "[email protected] " } , "1" )
180
- expect ( @index . exists ) . to be true
180
+ expect ( @index . exists? ) . to be true
181
181
end
182
182
183
183
it "should tell if index does not exist" do
184
184
index = Algolia ::Index . new ( 'nonexistent_index' )
185
- expect ( index . exists ) . to be false
185
+ expect ( index . exists? ) . to be false
186
186
end
187
187
188
188
it "should add a simple object" do
You can’t perform that action at this time.
0 commit comments