aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
authorTeddy Wing2017-08-29 11:49:38 +0200
committerTeddy Wing2017-08-29 11:49:38 +0200
commit8c8127d4958e9c9d18495667984a78b438983eda (patch)
treebf5fa5f08016267c39377d4bcc05a02e7acde7ce /spec/models
parente065cf5696aec68c621e5ea7c26de01c6c8b201b (diff)
downloadchouette-core-8c8127d4958e9c9d18495667984a78b438983eda.tar.bz2
Import: Remove `#ready?`
This method is no longer used, now that we have Alban's `#update_status` method. Originally this was supposed to be used to determine if the import was finished or not. Now, the parent import status field update doesn't depend on it, and we can use the `Referential#ready` field to determine whether or not to display the import in the interface.
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/import_spec.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/models/import_spec.rb b/spec/models/import_spec.rb
index 9a9d7326d..cb12d92a9 100644
--- a/spec/models/import_spec.rb
+++ b/spec/models/import_spec.rb
@@ -149,26 +149,4 @@ RSpec.describe Import, :type => :model do
workbench_import.child_change
end
end
-
- describe "#ready?" do
- it "returns true if #current_step == #total_steps" do
- import = build_stubbed(
- :import,
- total_steps: 4,
- current_step: 4
- )
-
- expect(import.ready?).to be true
- end
-
- it "returns false if #current_step != #total_steps" do
- import = build_stubbed(
- :import,
- total_steps: 6,
- current_step: 3
- )
-
- expect(import.ready?).to be false
- end
- end
end