aboutsummaryrefslogtreecommitdiffstats
path: root/spec/services
diff options
context:
space:
mode:
authorRobert2017-07-26 08:13:43 +0200
committerRobert2017-07-26 14:35:42 +0200
commitd385a6da731dc6b3ec0ec5bec1e94eb2dcff5efb (patch)
tree0e2113f5292a7929d3a3e34d06121302b0f70949 /spec/services
parentfe46c7832fa1e0c6af450f0937aea3534c0f6b01 (diff)
downloadchouette-core-d385a6da731dc6b3ec0ec5bec1e94eb2dcff5efb.tar.bz2
Refs: #3507@4h; Finished Basic WorkbenchImportWorker
- speced but missing error treatment
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/file_service_spec.rb25
1 files changed, 13 insertions, 12 deletions
diff --git a/spec/services/file_service_spec.rb b/spec/services/file_service_spec.rb
index 90e164408..4426ee145 100644
--- a/spec/services/file_service_spec.rb
+++ b/spec/services/file_service_spec.rb
@@ -1,16 +1,17 @@
-RSpec.describe FileService do
+# TODO: Delete me after stable implementation of #1726
+# RSpec.describe FileService do
- it 'computes a unique filename' do
- expect( File ).to receive(:exists?).with('xxx/yyy_0').and_return( false )
+# it 'computes a unique filename' do
+# expect( File ).to receive(:exists?).with('xxx/yyy_0').and_return( false )
- expect(described_class.unique_filename('xxx/yyy')).to eq('xxx/yyy_0')
- end
+# expect(described_class.unique_filename('xxx/yyy')).to eq('xxx/yyy_0')
+# end
- it 'handles duplicate names by means of a counter' do
- expect( File ).to receive(:exists?).with('xxx/yyy_0').and_return( true )
- expect( File ).to receive(:exists?).with('xxx/yyy_1').and_return( true )
- expect( File ).to receive(:exists?).with('xxx/yyy_2').and_return( false )
+# it 'handles duplicate names by means of a counter' do
+# expect( File ).to receive(:exists?).with('xxx/yyy_0').and_return( true )
+# expect( File ).to receive(:exists?).with('xxx/yyy_1').and_return( true )
+# expect( File ).to receive(:exists?).with('xxx/yyy_2').and_return( false )
- expect(described_class.unique_filename('xxx/yyy')).to eq('xxx/yyy_2')
- end
-end
+# expect(described_class.unique_filename('xxx/yyy')).to eq('xxx/yyy_2')
+# end
+# end