Sha256: 891784203e8eec55ea9129069ea8b18f4cb02364a02d98c0893e07de235b0cff

Contents?: true

Size: 792 Bytes

Versions: 6

Compression:

Stored size: 792 Bytes

Contents

require_relative '../lib/config.rb'
require_relative '../lib/voucherify_data.rb'
require_relative '../lib/events.rb'
require_relative 'support/snapshot_helper'
require_relative 'support/get_snapshot_without_uniq_keys'
require_relative 'support/validate_deep_match'

RSpec.describe 'Events API', :order => :defined do
  before(:each) do
    @events_api_instance = Config.events_api_instance()
    @voucherify_data = VoucherifyData.instance()
  end

  it 'track custom event', :order => :first do
    created_event = create_event(@events_api_instance)

    snapshot_name = 'events/created_event'
    filtered_snapshot = get_snapshot_without_uniq_keys(snapshot_name)

    expect(created_event).not_to be_nil
    expect(validate_deep_match(filtered_snapshot, created_event)).to be true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voucherify-8.0.3 __tests__/spec/08_events_spec.rb
voucherify-8.0.2 __tests__/spec/08_events_spec.rb
voucherify-8.0.1 __tests__/spec/08_events_spec.rb
voucherify-8.0.0 __tests__/spec/08_events_spec.rb
voucherify-7.0.0 __tests__/spec/08_events_spec.rb
voucherify-6.0.0 __tests__/spec/08_events_spec.rb