spec/flydata/helper/action/send_logs_spec.rb in flydata-0.7.19 vs spec/flydata/helper/action/send_logs_spec.rb in flydata-0.8.0

- old
+ new

@@ -1,8 +1,9 @@ require 'spec_helper' require 'flydata/api_client' require_relative '../helper_shared_context' +require 'flydata/helper/action/send_logs' module Flydata module Helper module Action describe SendLogs do @@ -18,12 +19,16 @@ let(:send_log_action) do allow(ApiClient).to receive(:instance).and_return(api_client) described_class.new(config) end + let(:action_config) { %Q|{"num_of_lines" : "10"}| } let(:action_info) do - { id: 101, config: %Q|{"num_of_lines" : "10"}| } + { id: 101, + config: action_config, + config_hash: JSON.parse(action_config, symbolize_names: true), + } end describe "#execute" do before do File.open(FLYDATA_LOG, 'w') do |f|