aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorXinhui2016-09-29 15:25:37 +0200
committerXinhui2016-09-29 15:28:47 +0200
commit5dedb1352f274113e97a2554d9249e56a865a4bf (patch)
tree5ae8317d400795312f485433c0ebd47bd3c5a71f /spec
parent98a5b302923bf369c14e35a506af94b84e32c7ee (diff)
downloadchouette-core-5dedb1352f274113e97a2554d9249e56a865a4bf.tar.bz2
Add started_at, ended_at, status to stop_area_referential_syncs
Refs #1710
Diffstat (limited to 'spec')
-rw-r--r--spec/factories/stop_area_sync_operations.rb8
-rw-r--r--spec/models/stop_area_referential_sync_spec.rb15
-rw-r--r--spec/models/stop_area_sync_operation_spec.rb9
3 files changed, 0 insertions, 32 deletions
diff --git a/spec/factories/stop_area_sync_operations.rb b/spec/factories/stop_area_sync_operations.rb
deleted file mode 100644
index c62f7f9c6..000000000
--- a/spec/factories/stop_area_sync_operations.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-FactoryGirl.define do
- factory :stop_area_sync_operation do
- status "MyString"
-stop_area_referential_sync nil
-message "MyString"
- end
-
-end
diff --git a/spec/models/stop_area_referential_sync_spec.rb b/spec/models/stop_area_referential_sync_spec.rb
index bc5f92b2d..5f1e1e124 100644
--- a/spec/models/stop_area_referential_sync_spec.rb
+++ b/spec/models/stop_area_referential_sync_spec.rb
@@ -6,19 +6,4 @@ RSpec.describe StopAreaReferentialSync, :type => :model do
end
it { is_expected.to belong_to(:stop_area_referential) }
- it { is_expected.to have_many(:stop_area_sync_operations) }
-
- describe '.record_status'
- let!(:stop_area_ref_sync) { create(:stop_area_referential_sync) }
- let!(:stop_area_ref_sync_with_records) { create(:stop_area_referential_sync_with_record, stop_area_sync_operations_count: 30) }
-
- it 'should add a new record' do
- stop_area_ref_sync.record_status :ok, "message"
- expect(stop_area_ref_sync.stop_area_sync_operations.count).to eq(1)
- end
-
- it 'should not have more than 30 records' do
- stop_area_ref_sync_with_records.record_status :ok, "message"
- expect(stop_area_ref_sync_with_records.stop_area_sync_operations.count).to eq(30)
- end
end
diff --git a/spec/models/stop_area_sync_operation_spec.rb b/spec/models/stop_area_sync_operation_spec.rb
deleted file mode 100644
index a98108d71..000000000
--- a/spec/models/stop_area_sync_operation_spec.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-require 'rails_helper'
-
-RSpec.describe StopAreaSyncOperation, :type => :model do
- it 'should have a valid factory' do
- expect(FactoryGirl.build(:stop_area_sync_operation)).to be_valid
- end
-
- it { is_expected.to belong_to(:stop_area_referential_sync) }
-end