Sha256: 1d7d93b05937d7a1604e11bbf6cb0da31ae50d34d9c08b581f9b8709974edc89

Contents?: true

Size: 435 Bytes

Versions: 16

Compression:

Stored size: 435 Bytes

Contents

module ResqueSpec
  module Helpers

    def with_resque
      original = ResqueSpec.inline
      begin
        ResqueSpec.inline = true
        yield
      ensure
        ResqueSpec.inline = original
      end
    end

    def without_resque_spec
      original = ResqueSpec.disable_ext
      begin
        ResqueSpec.disable_ext = true
        yield
      ensure
        ResqueSpec.disable_ext = original
      end
    end

  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
resque_spec-0.18.1 lib/resque_spec/helpers.rb
tresque-0.0.2 lib/tresque/resque_spec/helpers.rb
resque_spec-0.17.0 lib/resque_spec/helpers.rb
resque_spec-0.16.0 lib/resque_spec/helpers.rb
resque_spec-0.15.0 lib/resque_spec/helpers.rb
resque_spec-0.14.4 lib/resque_spec/helpers.rb
resque_spec-0.14.3 lib/resque_spec/helpers.rb
resque_spec-0.14.2 lib/resque_spec/helpers.rb
resque_spec-0.14.1 lib/resque_spec/helpers.rb
resque_spec-0.14.0 lib/resque_spec/helpers.rb
resque_spec-0.13.0 lib/resque_spec/helpers.rb
resque_spec-0.12.7 lib/resque_spec/helpers.rb
resque_spec-0.12.6 lib/resque_spec/helpers.rb
resque_spec-0.12.5 lib/resque_spec/helpers.rb
resque_spec-0.12.4 lib/resque_spec/helpers.rb
resque_spec-0.12.3 lib/resque_spec/helpers.rb