diff options
| author | Robert | 2018-01-08 21:19:35 +0100 |
|---|---|---|
| committer | Alban Peignier | 2018-01-10 17:43:03 +0100 |
| commit | de93869cd6f9e842d8c0b968a3ff40a1ff521774 (patch) | |
| tree | 5ff53abde56ee7259221c9c107c46ec565bef8d9 /spec | |
| parent | 1a8f2f2be86769fae70a17126954f453b48f4741 (diff) | |
| download | chouette-core-de93869cd6f9e842d8c0b968a3ff40a1ff521774.tar.bz2 | |
bup [amend me] [skip-ci]
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/models/workgroup_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/models/workgroup_spec.rb b/spec/models/workgroup_spec.rb index 9d18dbc4a..7d7b3cf87 100644 --- a/spec/models/workgroup_spec.rb +++ b/spec/models/workgroup_spec.rb @@ -1,5 +1,10 @@ require 'rails_helper' RSpec.describe Workgroup, type: :model do - pending "add some examples to (or delete) #{__FILE__}" + let( :workgroup ){ build_stubbed :workgroup } + + it 'is not valid without a stop_area_referential' do + workgroup.line_referential_id = 42 + expect( workgroup ).not_to be_valid + end end |
