aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorEdouard Maffert2016-08-19 11:48:17 +0200
committerEdouard Maffert2016-08-19 11:48:17 +0200
commitb2eeaa1eb9f8e4788ef1467bd6fbd2dd4aa6300c (patch)
tree427103d3eaba70110aeb6f4f40b8b82c2d5bdff4 /spec
parent3006b23a21ab2d5671e29c1241fd5cf672f9ce1d (diff)
downloadchouette-core-b2eeaa1eb9f8e4788ef1467bd6fbd2dd4aa6300c.tar.bz2
fix codiflinesynchronization and add better synchronization messages
Diffstat (limited to 'spec')
-rw-r--r--spec/models/line_referential_sync_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/line_referential_sync_spec.rb b/spec/models/line_referential_sync_spec.rb
index 8befc216a..a237f4d24 100644
--- a/spec/models/line_referential_sync_spec.rb
+++ b/spec/models/line_referential_sync_spec.rb
@@ -12,12 +12,12 @@ RSpec.describe LineReferentialSync, :type => :model do
let!(:line_ref_sync_with_records) { create(:line_referential_sync_with_record, line_sync_operations_count: 30) }
it 'should add a new record' do
- line_ref_sync.record_status "OK"
+ line_ref_sync.record_status :ok, "message"
expect(line_ref_sync.line_sync_operations.count).to eq(1)
end
it 'should not have more than 30 records' do
- line_ref_sync_with_records.record_status "OK"
+ line_ref_sync_with_records.record_status :ok, "message"
expect(line_ref_sync_with_records.line_sync_operations.count).to eq(30)
end
end