Sha256: b8be2b3408b787dd63441108136b1f0ca595b8ff215517c5504af49d05591171

Contents?: true

Size: 366 Bytes

Versions: 5

Compression:

Stored size: 366 Bytes

Contents

require "spec_helper"

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

      it "checks store is not nil" do
        expect(Audited.store[:current_user]).to eq(current_user)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
audited-5.5.0 spec/audited_spec.rb
audited-5.4.3 spec/audited_spec.rb
audited-5.4.2 spec/audited_spec.rb
audited-5.4.0 spec/audited_spec.rb
audited-5.3.3 spec/audited_spec.rb