diff --git a/spec/models/status_message_spec.rb b/spec/models/status_message_spec.rb index 718f49ba3..d7632958e 100644 --- a/spec/models/status_message_spec.rb +++ b/spec/models/status_message_spec.rb @@ -193,7 +193,7 @@ describe StatusMessage, type: :model do it "should queue a GatherOembedData if it includes a link" do status_message - expect(Workers::GatherOEmbedData).to receive(:perform_async).with(instance_of(Fixnum), instance_of(String)) + expect(Workers::GatherOEmbedData).to receive(:perform_async).with(kind_of(Integer), instance_of(String)) status_message.save end @@ -214,7 +214,7 @@ describe StatusMessage, type: :model do it "should queue a GatherOpenGraphData if it includes a link" do status_message - expect(Workers::GatherOpenGraphData).to receive(:perform_async).with(instance_of(Fixnum), instance_of(String)) + expect(Workers::GatherOpenGraphData).to receive(:perform_async).with(kind_of(Integer), instance_of(String)) status_message.save end diff --git a/spec/presenters/o_embed_presenter_spec.rb b/spec/presenters/o_embed_presenter_spec.rb index 9a14a5e7a..55c19a80e 100644 --- a/spec/presenters/o_embed_presenter_spec.rb +++ b/spec/presenters/o_embed_presenter_spec.rb @@ -17,7 +17,7 @@ describe OEmbedPresenter do describe '#iframe_html' do it 'passes the height options to post_iframe_url' do - expect(@oembed).to receive(:post_iframe_url).with(instance_of(Fixnum), instance_of(Hash)) + expect(@oembed).to receive(:post_iframe_url).with(kind_of(Integer), instance_of(Hash)) @oembed.iframe_html end end @@ -31,4 +31,4 @@ describe OEmbedPresenter do expect(OEmbedPresenter.id_from_url('http://localhost:400/p/1')).to eq("1") end end -end \ No newline at end of file +end diff --git a/spec/workers/send_private_spec.rb b/spec/workers/send_private_spec.rb index 92765c0a2..e3d9a99bc 100644 --- a/spec/workers/send_private_spec.rb +++ b/spec/workers/send_private_spec.rb @@ -23,7 +23,7 @@ describe Workers::SendPrivate do sender_id, obj_str, targets ).and_return(failing_targets) expect(Workers::SendPrivate).to receive(:perform_in).with( - kind_of(Fixnum), sender_id, obj_str, failing_targets, 1 + kind_of(Integer), sender_id, obj_str, failing_targets, 1 ) Workers::SendPrivate.new.perform(sender_id, obj_str, targets) diff --git a/spec/workers/send_public_spec.rb b/spec/workers/send_public_spec.rb index bf34c6501..4f87ddb33 100644 --- a/spec/workers/send_public_spec.rb +++ b/spec/workers/send_public_spec.rb @@ -19,7 +19,7 @@ describe Workers::SendPublic do sender_id, obj_str, urls, xml ).and_return(failing_urls) expect(Workers::SendPublic).to receive(:perform_in).with( - kind_of(Fixnum), sender_id, obj_str, failing_urls, xml, 1 + kind_of(Integer), sender_id, obj_str, failing_urls, xml, 1 ) Workers::SendPublic.new.perform(sender_id, obj_str, urls, xml)