blob: b960c203f540e4abb941cd9fb29905f65c19ff28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
require 'spec_helper'
describe Chouette::Timeband, :type => :model do
it { is_expected.to be_versioned }
describe '#create' do
context 'when valid' do
it { create(:timeband) }
end
context 'when not valid' do
it 'fails validation with end_time before start_time' do
timeband = build(:timeband_invalid)
expect(timeband).to be_invalid
end
end
end
end
|