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