Sha256: 086385ba604aec29252be905cb0caaee6711ea4b7f57b2bc278f78610be99f84

Contents?: true

Size: 643 Bytes

Versions: 3

Compression:

Stored size: 643 Bytes

Contents

require 'spec_helper'

describe 'wu-hadoop' do

  context "when wonderdog hasn't been required" do
    let(:script) { examples_dir('no_wonderdog.rb') }
    it "doesn't recognize Elasticsearch URIs" do
      command('wu-hadoop', script, '--input=es://foo/bar', '--output=/some/path', '--dry_run').should_not have_stdout('elasticsearch')
    end
  end

  context "when wonderdog hasn't been required" do
    let(:script) { examples_dir('wonderdog.rb') }
    it "recognizes Elasticsearch URIs" do
      command('wu-hadoop', script, '--input=es://foo/bar', '--output=/some/path', '--dry_run').should have_stdout('elasticsearch')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wonderdog-0.2.0 spec/wonderdog/wu-hadoop_spec.rb
wonderdog-0.1.1 spec/wonderdog/wu-hadoop_spec.rb
wonderdog-0.1.0 spec/wonderdog/wu-hadoop_spec.rb