Sha256: 63170bf1f8d2b06fbab6c43061aa354af408e0102cbdde225d68066323faa00c

Contents?: true

Size: 564 Bytes

Versions: 12

Compression:

Stored size: 564 Bytes

Contents

require "spec_helper"

describe Alephant::Publisher::Request::Processor do
  let (:base_path) { File.join(File.dirname(__FILE__), 'fixtures', 'components') }
  subject { described_class.new(base_path) }

  describe ".new" do
    specify { expect(subject).to be_a described_class }
  end

  describe "#consume" do
    let (:data) do
      {
        :content => "Foo Bar"
      }
    end

    context "using valid data" do
      let (:component) { "foo" }

      specify { expect(subject.consume(data, component)).to eq "#{data.values.first}\n" }
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alephant-publisher-request-0.3.0 spec/processor_spec.rb
alephant-publisher-request-0.2.6 spec/processor_spec.rb
alephant-publisher-request-0.2.5 spec/processor_spec.rb
alephant-publisher-request-0.2.4 spec/processor_spec.rb
alephant-publisher-request-0.2.3 spec/processor_spec.rb
alephant-publisher-request-0.2.2 spec/processor_spec.rb
alephant-publisher-request-0.2.1 spec/processor_spec.rb
alephant-publisher-request-0.2.0 spec/processor_spec.rb
alephant-publisher-request-0.1.2 spec/processor_spec.rb
alephant-publisher-request-0.1.1 spec/processor_spec.rb
alephant-publisher-request-0.0.3 spec/processor_spec.rb
alephant-publisher-request-0.0.2 spec/processor_spec.rb