Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonne Haß <me@mrzyx.de>2013-08-31 15:34:17 +0400
committerJonne Haß <me@mrzyx.de>2014-08-23 18:34:00 +0400
commit33c3b38f2f8c6ede39b1357eb3cb49f18543cdce (patch)
tree258c978e7f24c0258d71e6cd663918cb2c094714 /spec/workers
parentd75632401be015b58359ee7811740d7ce0d3eae1 (diff)
replace deprecated finder and finder_options syntax
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/gather_o_embed_data_spec.rb2
-rw-r--r--spec/workers/gather_open_graph_data_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/gather_o_embed_data_spec.rb b/spec/workers/gather_o_embed_data_spec.rb
index 361502c0e..1593ed4e0 100644
--- a/spec/workers/gather_o_embed_data_spec.rb
+++ b/spec/workers/gather_o_embed_data_spec.rb
@@ -51,7 +51,7 @@ describe Workers::GatherOEmbedData do
OEmbedCache.find_by_url(@flickr_photo_url).data.should == expected_data
Workers::GatherOEmbedData.new.perform(@status_message.id, @flickr_photo_url)
- OEmbedCache.count(:conditions => {:url => @flickr_photo_url}).should == 1
+ OEmbedCache.where(url: @flickr_photo_url).count.should == 1
end
it 'creates no cache entry for unsupported pages' do
diff --git a/spec/workers/gather_open_graph_data_spec.rb b/spec/workers/gather_open_graph_data_spec.rb
index c7a2a8f2b..dbe53ff81 100644
--- a/spec/workers/gather_open_graph_data_spec.rb
+++ b/spec/workers/gather_open_graph_data_spec.rb
@@ -51,7 +51,7 @@ describe Workers::GatherOpenGraphData do
ogc.description.should == @ogsite_description
Workers::GatherOpenGraphData.new.perform(@status_message.id, @ogsite_url)
- OpenGraphCache.count(:conditions => {:url => @ogsite_url}).should == 1
+ OpenGraphCache.where(url: @ogsite_url).count.should == 1
end
it 'creates no cache entry for unsupported pages' do