spec/embulk_spec.rb in embulk-input-jira-0.0.2 vs spec/embulk_spec.rb in embulk-input-jira-0.0.3
- old
+ new
@@ -9,9 +9,10 @@
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]