Sha256: ded05f48e0313889676ae8ca4a39342ea21d8372abd340df534838ec7643bee3

Contents?: true

Size: 576 Bytes

Versions: 5

Compression:

Stored size: 576 Bytes

Contents

require "spec_helper"
require_relative "a_pipe"
require "async"

RSpec.describe Plumbing::Pipe do
  context "inline" do
    around :example do |example|
      Plumbing.configure mode: :inline, &example
    end

    it_behaves_like "a pipe"
  end

  context "async" do
    around :example do |example|
      Sync do
        Plumbing.configure mode: :async, &example
      end
    end

    it_behaves_like "a pipe"
  end

  context "threaded" do
    around :example do |example|
      Plumbing.configure mode: :threaded, &example
    end

    it_behaves_like "a pipe"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
standard-procedure-plumbing-0.4.3 spec/plumbing/pipe_spec.rb
standard-procedure-plumbing-0.4.2 spec/plumbing/pipe_spec.rb
standard-procedure-plumbing-0.4.1 spec/plumbing/pipe_spec.rb
standard-procedure-plumbing-0.4.0 spec/plumbing/pipe_spec.rb
standard-procedure-plumbing-0.3.3 spec/plumbing/pipe_spec.rb