diff options
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 |
