Skip to content

Commit eed27ea

Browse files
committed
fix: spec
1 parent ad9911e commit eed27ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: spec/lib/active_admin/mongoid/filter_form_builder_spec.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
describe ActiveAdmin::Filters::FormBuilder do
44
describe '#default_input_type' do
5-
let(:instance) { described_class.new({}, {}, {}, {}) }
5+
let(:template) { ActionView::Base.empty }
6+
let(:object) { double('Object') }
7+
let(:instance) { described_class.new(:search, object, template, {}) }
68
let(:column) { double(:column) }
79
subject { instance.default_input_type(nil) }
810

911
before do
1012
allow(column).to receive_message_chain('type.name.downcase.to_sym')
1113
.and_return(column_symbol)
12-
allow(instance).to receive(:column_for).with(anything).and_return(column)
14+
allow(instance).to receive(:column_for).and_return(column)
1315
end
1416

1517
context 'date_range' do

0 commit comments

Comments
 (0)