Sha256: 1148c8f826c623f7c5751fb0919aa4acf91024eb7b3fb4d664bfc840eab6b9cc

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

# frozen_string_literal: true

describe PUNK::IdentifySessionWorker, :vcr do
  let(:user_agent) { "Mozilla/5.0 (Windows NT x.y; Win64; x64; rv:10.0) Gecko/20100101 Firefox/10.0" }
  let(:remote_addr) { "92.177.45.168" }
  let(:session) { create(:session, user_agent: user_agent, remote_addr: remote_addr) }

  it "updates the session data" do
    expect(session.data).to eq({})
    described_class.perform_async(session_id: session.id)
    described_class.drain
    session.reload
    expect(session.data.to_h).not_to eq({})
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
punk-0.4.1 spec/workers/punk/identify_session_worker_spec.rb