diff options
| author | Robert | 2017-08-02 14:40:34 +0200 |
|---|---|---|
| committer | Robert | 2017-08-02 14:40:34 +0200 |
| commit | 420068615d1633a1a9fac48db82d3df04913af9a (patch) | |
| tree | 08328d0d2c385052dee081701c990be17a75907d /spec | |
| parent | 0bbf12d9a861c26ce9f3bac30d97bb9bdb1876ec (diff) | |
| download | chouette-core-420068615d1633a1a9fac48db82d3df04913af9a.tar.bz2 | |
Hotfix for Jenkins, removed specs needing `unzip`
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/fixtures/ref1.zip | bin | 554 -> 0 bytes | |||
| -rw-r--r-- | spec/fixtures/ref2.zip | bin | 554 -> 0 bytes | |||
| -rw-r--r-- | spec/services/zip_service/zip_output_streams_spec.rb | 13 |
3 files changed, 0 insertions, 13 deletions
diff --git a/spec/fixtures/ref1.zip b/spec/fixtures/ref1.zip Binary files differdeleted file mode 100644 index 1cbd0268e..000000000 --- a/spec/fixtures/ref1.zip +++ /dev/null diff --git a/spec/fixtures/ref2.zip b/spec/fixtures/ref2.zip Binary files differdeleted file mode 100644 index 342353b07..000000000 --- a/spec/fixtures/ref2.zip +++ /dev/null diff --git a/spec/services/zip_service/zip_output_streams_spec.rb b/spec/services/zip_service/zip_output_streams_spec.rb index fbc60ae92..742f9b996 100644 --- a/spec/services/zip_service/zip_output_streams_spec.rb +++ b/spec/services/zip_service/zip_output_streams_spec.rb @@ -2,19 +2,6 @@ RSpec.describe ZipService do subject{ described_class.new(read_fixture('multiple_references_import.zip')) } - - it 'can write itself to a file' do - streams = subject.entry_group_streams - streams.each do | name, stream | - File.write("tmp/#{name}.zip", stream.string) - end - ref1_lines = %x(unzip -l tmp/ref1.zip).split("\n").grep(%r{multiref/ref}).map(&:strip).map(&:split).map(&:last) - ref2_lines = %x(unzip -l tmp/ref2.zip).split("\n").grep(%r{multiref/ref}).map(&:strip).map(&:split).map(&:last) - - expect( ref1_lines ).to eq %w(multiref/ref1/ multiref/ref1/datum-1 multiref/ref1/datum-2) - expect( ref2_lines ).to eq %w(multiref/ref2/ multiref/ref2/datum-1 multiref/ref2/datum-2) - end - it "exposes its size" do expect( subject.entry_group_streams.size ).to eq(2) end |
