Sha256: 2988e6ae2c2acacaab06352a2fb591f03214b04dad887f7993b235a77eb67be8

Contents?: true

Size: 488 Bytes

Versions: 10

Compression:

Stored size: 488 Bytes

Contents

require "spec_helper"

describe Audited do
  describe "#store" do
    describe "maintains state of store" do
      let(:current_user) { "current_user" }
      before { Audited.store[:current_user] = current_user }

      it "when executed without fibers" do
        expect(Audited.store[:current_user]).to eq(current_user)
      end

      it "when executed with Fibers" do
        Fiber.new { expect(Audited.store[:current_user]).to eq(current_user) }.resume
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
audited-5.3.2 spec/audited_spec.rb
audited-5.3.1 spec/audited_spec.rb
audited-5.3.0 spec/audited_spec.rb
audited-5.2.0 spec/audited_spec.rb
audited-5.1.0 spec/audited_spec.rb
velocity_audited-5.1.4 spec/audited_spec.rb
velocity_audited-5.1.3 spec/audited_spec.rb
audited-5.0.2 spec/audited_spec.rb
audited-5.0.1 spec/audited_spec.rb
audited-5.0.0 spec/audited_spec.rb