test/lib/vedeu/support/grid_test.rb in vedeu-0.2.4 vs test/lib/vedeu/support/grid_test.rb in vedeu-0.2.5

- old
+ new

@@ -1,19 +1,23 @@ require 'test_helper' describe Fixnum do + describe '#columns' do it 'returns the width if the value is in range' do IO.console.stub :winsize, [25, 60] do 1.columns.must_equal(5) end end end -end +end # Fixnum + module Vedeu + describe Grid do + describe '.columns' do it 'raises an exception if the value is less than 1' do proc { Grid.columns(0) }.must_raise(OutOfRange) end @@ -25,7 +29,9 @@ IO.console.stub :winsize, [25, 80] do Grid.columns(7).must_equal(42) end end end - end -end + + end # Grid + +end # Vedeu