From c11ddaa770d9789e8ee1dfcc91a5e62501c76c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Mon, 6 Jan 2014 20:18:05 +0100 Subject: [PATCH] remove not_to raise_error deprecations --- spec/workers/gather_o_embed_data_spec.rb | 2 +- spec/workers/gather_open_graph_data_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/workers/gather_o_embed_data_spec.rb b/spec/workers/gather_o_embed_data_spec.rb index 9dc2710ac..361502c0e 100644 --- a/spec/workers/gather_o_embed_data_spec.rb +++ b/spec/workers/gather_o_embed_data_spec.rb @@ -63,7 +63,7 @@ describe Workers::GatherOEmbedData do it 'gracefully handles a deleted post' do expect { Workers::GatherOEmbedData.new.perform(0, @flickr_photo_url) - }.to_not raise_error ActiveRecord::RecordNotFound + }.to_not raise_error end end end diff --git a/spec/workers/gather_open_graph_data_spec.rb b/spec/workers/gather_open_graph_data_spec.rb index 66914e005..c7a2a8f2b 100644 --- a/spec/workers/gather_open_graph_data_spec.rb +++ b/spec/workers/gather_open_graph_data_spec.rb @@ -6,7 +6,7 @@ describe Workers::GatherOpenGraphData do @ogsite_image = '/img/something.png' @ogsite_url = 'http://www.we-support-open-graph.com' @ogsite_description = 'Homepage' - + @ogsite_body = "#{@ogsite_title} @@ -63,7 +63,7 @@ describe Workers::GatherOpenGraphData do it 'gracefully handles a deleted post' do expect { Workers::GatherOpenGraphData.new.perform(0, @ogsite_url) - }.to_not raise_error ActiveRecord::RecordNotFound + }.to_not raise_error end end end