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