Sha256: 6560bd21a941a8bcc12992f6be2ff3ddd6066a8ead25aa27bb5b0aa1dcc6827c

Contents?: true

Size: 595 Bytes

Versions: 3

Compression:

Stored size: 595 Bytes

Contents

require "spec_helper"

RSpec.describe CronToGoSync::SyncInteractor, :vcr, type: :interactor do
  describe "#call" do
    let(:api_key) { ENV["CRONTOGO_API_KEY"] }
    let(:organization_id) { ENV["CRONTOGO_ORGANIZATION_ID"] }
    let(:data_file) { "spec/data/staging.toml".to_s }

    subject(:context) { described_class.call(input_filename: data_file, api_key: api_key, organization_id: organization_id) }

    it "works" do
      expect(context).to be_a_success
      expect(context.created).to eq 1
      expect(context.updated).to eq 1
      expect(context.deleted).to eq 1
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cron_to_go_sync-0.0.3 spec/sync_interactor_spec.rb
cron_to_go_sync-0.0.2 spec/sync_interactor_spec.rb
cron_to_go_sync-0.0.1 spec/sync_interactor_spec.rb