diff options
| author | Xinhui | 2017-05-10 15:30:06 +0200 |
|---|---|---|
| committer | Xinhui | 2017-05-10 15:30:06 +0200 |
| commit | bfd9121bc15e6c76e7e429c51d248e45758a3051 (patch) | |
| tree | 97a0a28958cfdab58383864a3ee31305e34ce806 /spec | |
| parent | 319ec987d5db94db0e3b373501bd33cb8cb7da7a (diff) | |
| download | chouette-core-bfd9121bc15e6c76e7e429c51d248e45758a3051.tar.bz2 | |
Fix time_table duplicate should also duplicate tags
Refs #3329
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/models/chouette/time_table_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/chouette/time_table_spec.rb b/spec/models/chouette/time_table_spec.rb index 18d76e805..1d0fa8585 100644 --- a/spec/models/chouette/time_table_spec.rb +++ b/spec/models/chouette/time_table_spec.rb @@ -1363,6 +1363,11 @@ end end describe "#duplicate" do + it 'should also copy tags' do + subject.tag_list.add('tag1', 'tag2') + expect(subject.duplicate.tag_list).to include('tag1', 'tag2') + end + it "should be a copy of" do target=subject.duplicate expect(target.id).to be_nil |
