Sha256: 56e5afc533977c198528c1365d0293de9dfdf7be34887db019f514aaca3983d1

Contents?: true

Size: 540 Bytes

Versions: 1

Compression:

Stored size: 540 Bytes

Contents

require 'spec_helper'

describe 'wu-storm' do
  context "without any arguments" do
    let(:subject) { command('wu-storm') }
    it {should exit_with(:non_zero) }
    it "displays help on STDERR" do
      should have_stderr(/processor.*dataflow.*run.*bolt_command/i)
    end
  end

  context "in --dry_run mode" do
    let(:subject) { command('wu-storm', 'identity', "--input=foo", "--output=foo", "--dry_run") }
    it { should exit_with(0) }
    it { should have_stdout(/storm.*jar/, /TopologySubmitter/, /wu-bolt.*identity/) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wukong-storm-0.2.0 spec/wukong-storm/wu-storm_spec.rb