test/lib/vedeu/common_test.rb in vedeu-0.8.13 vs test/lib/vedeu/common_test.rb in vedeu-0.8.14
- old
+ new
@@ -61,9 +61,25 @@
it { subject.must_equal(true) }
end
end
+ describe '#array?' do
+ let(:_value) {}
+
+ subject { instance.array?(_value) }
+
+ context 'when the value is an Array' do
+ let(:_value) { [:hydrogen] }
+
+ it { subject.must_equal(true) }
+ end
+
+ context 'when the value is not an Array' do
+ it { subject.must_equal(false) }
+ end
+ end
+
describe '#boolean' do
subject { instance.boolean(_value) }
context 'when the value is a TrueClass' do
let(:_value) { true }