Sha256: 54cdfe2f3e760da05b930dc60270b60601ae6cb8f2019865c2bdd251c7ebde30
Contents?: true
Size: 990 Bytes
Versions: 2
Compression:
Stored size: 990 Bytes
Contents
require "spec_helper" describe "Be Retryable matcher" do describe "expect syntax" do context "when retryable is number" do it "correctly matches" do expect(TestWorker).to be_retryable 5 end end context "when retryable is true" do it "correctly matches" do expect(TestWorkerDefaults).to be_retryable true end end context "when retryable is false" do it "correctly matches" do expect(TestWorkerAlternative).to be_retryable false end end end describe "one liner syntax" do context "when retryable is number" do subject { TestWorker } expect_it { to be_retryable 5 } end context "when retryable is true" do subject { TestWorkerDefaults } expect_it { to be_retryable true } end context "when retryable is false" do subject { TestWorkerAlternative } expect_it { to be_retryable false } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-sidekiq-0.5.1 | spec/rspec/sidekiq/matchers/be_retryable_spec.rb |
rspec-sidekiq-0.5.0 | spec/rspec/sidekiq/matchers/be_retryable_spec.rb |