spec/lib/vnstat/result/minute_spec.rb in vnstat-ruby-1.0.2 vs spec/lib/vnstat/result/minute_spec.rb in vnstat-ruby-1.0.3

- old
+ new

@@ -19,11 +19,13 @@ described_class.extract_from_xml_element(element) end it { is_expected.to be_a described_class } - it 'initializes with the correct #time' do - expect(subject.time).to eq DateTime.new(2015, 2, 3, 12, 34) + it 'initializes with the correct #time with the system time zone' do + time = DateTime.new(2015, 2, 3, 12, 34, 00, DateTime.now.offset) + + expect(subject.time).to eq time end it 'initializes with the correct #date' do expect(subject.date).to eq Date.new(2015, 2, 3) end