diff options
| author | Zog | 2018-03-06 11:49:11 +0100 |
|---|---|---|
| committer | Zog | 2018-03-06 11:49:19 +0100 |
| commit | b7079226c965e7130a2bcc17b7f278a1e23ac7e8 (patch) | |
| tree | c3ed4a84b879d0424c6f269eb9f7aa2a2018f4fe /spec | |
| parent | c322f76744e68185766b0962066d69f7dc4d9629 (diff) | |
| download | chouette-core-6068-simple-exporter.tar.bz2 | |
Refs #6068; Fix specs6068-simple-exporter
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/models/simple_interfaces_group_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/models/simple_interfaces_group_spec.rb b/spec/models/simple_interfaces_group_spec.rb index 65ce9a1bf..0b6d360de 100644 --- a/spec/models/simple_interfaces_group_spec.rb +++ b/spec/models/simple_interfaces_group_spec.rb @@ -3,13 +3,13 @@ RSpec.describe SimpleInterfacesGroup do before do create :stop_area SimpleExporter.define :test_1 do |config| - config.collection = Chouette::StopArea + config.collection = Chouette::StopArea.all config.key = "name" config.add_column :name end SimpleExporter.define :test_2 do |config| - config.collection = Chouette::StopArea + config.collection = Chouette::StopArea.all config.key = "name" config.add_column :lat, attribute: :latitude end @@ -19,12 +19,12 @@ RSpec.describe SimpleInterfacesGroup do test_1 = SimpleExporter.new(configuration_name: :test_1, filepath: "tmp/test1.csv") test_2 = SimpleExporter.new(configuration_name: :test_2, filepath: "tmp/test1.csv") - expect(test_1).to receive(:export) - expect(test_2).to receive(:export) + expect(test_1).to receive(:export).and_call_original + expect(test_2).to receive(:export).and_call_original group = SimpleInterfacesGroup.new "group" group.add_interface test_1, "Test 1", :export - group.add_interface test_2, "Test 1", :export + group.add_interface test_2, "Test 2", :export group.run end end |
