Sha256: 02cee372b6798685c0e1db6035c18d9479f8f0496c62ee2c89ba19384a0c56b9

Contents?: true

Size: 763 Bytes

Versions: 2

Compression:

Stored size: 763 Bytes

Contents

require "spec_helper"

describe Embulk do
  describe "registerd jira as input plugin" do
    let(:config) { <<-YAML }
in:
  type: jira
    YAML
    let(:config_file) { Tempfile.new("embulk-conf") }

    before do
      config_file.puts config
      config_file.close
      allow(org.embulk.spi.Exec).to receive_message_chain(:session, :isPreview).and_return(true)
    end

    subject {
      capture_output(:out) do
        Embulk.run ["preview", config_file.path]
      end
    }

    it do
      # NOTE: can't stub `exit` so stubbing `raise`
      # https://github.com/embulk/embulk/blob/v0.6.9/lib/embulk/command/embulk_run.rb#L335
      allow(Embulk).to receive(:raise)

      is_expected.to_not include("InputPlugin 'jira' is not found.")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
embulk-input-jira-0.0.4 spec/embulk_spec.rb
embulk-input-jira-0.0.3 spec/embulk_spec.rb