Replace Fixnum with Integer
This commit is contained in:
parent
ca8974d4a0
commit
d62772f9c0
4 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
end
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue