diff --git a/spec/active_interaction/filters/time_filter_spec.rb b/spec/active_interaction/filters/time_filter_spec.rb index d7a76a04..c2b9537e 100644 --- a/spec/active_interaction/filters/time_filter_spec.rb +++ b/spec/active_interaction/filters/time_filter_spec.rb @@ -97,6 +97,14 @@ def to_str end end + context 'with an Integer' do + let(:value) { rand(1 << 16) } + + it 'returns the Time' do + expect(result).to eql Time.at(value) + end + end + context 'with a GroupedInput' do let(:year) { 2012 } let(:month) { 1 }