spec/lib/abstractivator/schedule/schedule_spec.rb in abstractivator-0.6.0 vs spec/lib/abstractivator/schedule/schedule_spec.rb in abstractivator-0.7.0

- old
+ new

@@ -46,10 +46,10 @@ good.each do |delimiter| Schedule.new("1:00-2:00#{delimiter}MWF") end bad = %w(- : . 4 M) + [' '] bad.each do |delimiter| - expect { Schedule.new("1:00-2:00#{delimiter}MWF") }.to raise_error + expect { Schedule.new("1:00-2:00#{delimiter}MWF") }.to raise_error RuntimeError end end it 'raises an exception when a bad day-of-week specifier is provided' do expect{Schedule.new('1:00-2:00#X')}.to raise_exception RuntimeError end