diff options
| author | Teddy Wing | 2017-08-29 13:08:02 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-08-29 13:08:02 +0200 | 
| commit | f9d176ebccd7eebb505154ce84252bc055cfedc9 (patch) | |
| tree | b309f22ee73c1f1dca7393c01224a2b4b2a7ed38 /spec/models/import_spec.rb | |
| parent | 8c8127d4958e9c9d18495667984a78b438983eda (diff) | |
| download | chouette-core-f9d176ebccd7eebb505154ce84252bc055cfedc9.tar.bz2 | |
Import: Add TODOs
A bunch of things that need to be written to get this in proper working
order.
Diffstat (limited to 'spec/models/import_spec.rb')
| -rw-r--r-- | spec/models/import_spec.rb | 38 | 
1 files changed, 21 insertions, 17 deletions
| diff --git a/spec/models/import_spec.rb b/spec/models/import_spec.rb index cb12d92a9..6d3d23830 100644 --- a/spec/models/import_spec.rb +++ b/spec/models/import_spec.rb @@ -48,6 +48,7 @@ RSpec.describe Import, :type => :model do      end    end +  # TODO: Move most of these to #update_status    describe "#child_change" do      shared_examples(        "updates :status to failed when child status indicates failure" @@ -82,23 +83,24 @@ RSpec.describe Import, :type => :model do        "canceled"      ) -    it "updates :status to successful when #ready?" do -      expect(workbench_import).to receive(:update).with(status: 'successful') - -      workbench_import.child_change -    end - -    it "updates :status to failed when #ready? and child is failed" do -      build_stubbed( -        :netex_import, -        parent: workbench_import, -        status: :failed -      ) - -      expect(workbench_import).to receive(:update).with(status: 'failed') - -      workbench_import.child_change -    end +    # TODO: rewrite these for new #update_status +    # it "updates :status to successful when #ready?" do +    #   expect(workbench_import).to receive(:update).with(status: 'successful') +    # +    #   workbench_import.child_change +    # end +    # +    # it "updates :status to failed when #ready? and child is failed" do +    #   build_stubbed( +    #     :netex_import, +    #     parent: workbench_import, +    #     status: :failed +    #   ) +    # +    #   expect(workbench_import).to receive(:update).with(status: 'failed') +    # +    #   workbench_import.child_change +    # end      shared_examples(        "doesn't update :status if parent import status is finished" @@ -149,4 +151,6 @@ RSpec.describe Import, :type => :model do        workbench_import.child_change      end    end + +  # TODO: specs for #update_referential  end | 
