diff options
| author | Robert | 2017-07-31 14:57:30 +0200 | 
|---|---|---|
| committer | Robert | 2017-07-31 14:57:30 +0200 | 
| commit | 54856654f0e7c1802ab785f8dff689f35c92fe80 (patch) | |
| tree | 6b9e06f91f0b852eb3158aa0181483ed33d8f8b6 /spec/services | |
| parent | 609b774388a7f57703ec14a224363c88f3564eaf (diff) | |
| download | chouette-core-54856654f0e7c1802ab785f8dff689f35c92fe80.tar.bz2 | |
Refs: #3507@2h CR 2nd leg
Diffstat (limited to 'spec/services')
| -rw-r--r-- | spec/services/retry_service_spec.rb | 5 | ||||
| -rw-r--r-- | spec/services/zip_service/zip_output_streams_spec.rb | 2 | 
2 files changed, 4 insertions, 3 deletions
| diff --git a/spec/services/retry_service_spec.rb b/spec/services/retry_service_spec.rb index ce150f808..bb3416373 100644 --- a/spec/services/retry_service_spec.rb +++ b/spec/services/retry_service_spec.rb @@ -42,7 +42,7 @@ RSpec.describe RetryService do        expect( subject ).to receive(:sleep).with(2)      end -    it 'succeds the second time' do +    it 'succeeds the second time' do        expect( subject.execute{ succeed_later(ArgumentError){ 42 } } ).to eq(Result.ok(42))      end @@ -58,7 +58,8 @@ RSpec.describe RetryService do        expect( subject ).to receive(:sleep).with(3)      end      it 'succeeds the third time with try again (automatically registered exception)' do -      expect( subject.execute{ succeed_later(RetryService::Retry, count: 2){ 42 } } ).to eq(Result.ok(42)) +      result = subject.execute{ succeed_later(RetryService::Retry, count: 2){ 42 } }   +      expect( result ).to eq( Result.ok(42) )      end    end diff --git a/spec/services/zip_service/zip_output_streams_spec.rb b/spec/services/zip_service/zip_output_streams_spec.rb index b99e7bc2d..d2452bfd8 100644 --- a/spec/services/zip_service/zip_output_streams_spec.rb +++ b/spec/services/zip_service/zip_output_streams_spec.rb @@ -15,7 +15,7 @@ RSpec.describe ZipService do      expect( ref2_lines ).to eq %w(multiref/ref2/ multiref/ref2/datum-1 multiref/ref2/datum-2)    end -  it "exposes it's size" do +  it "exposes its size" do      expect( subject.entry_group_streams.size ).to eq(2)    end  end | 
