diff options
author | Jonne Haß <me@mrzyx.de> | 2013-08-31 15:34:17 +0400 |
---|---|---|
committer | Jonne Haß <me@mrzyx.de> | 2014-08-23 18:34:00 +0400 |
commit | 33c3b38f2f8c6ede39b1357eb3cb49f18543cdce (patch) | |
tree | 258c978e7f24c0258d71e6cd663918cb2c094714 /spec/workers | |
parent | d75632401be015b58359ee7811740d7ce0d3eae1 (diff) |
replace deprecated finder and finder_options syntax
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/gather_o_embed_data_spec.rb | 2 | ||||
-rw-r--r-- | spec/workers/gather_open_graph_data_spec.rb | 2 |
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 |