Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### 3.2.3 (Next)

* [#57](https://github.com/mongoid/mongo_session_store/pull/57): Cover legacy session decoding and version loading, and fix private decoder delegation in the plain-driver adapter - [@dblock](https://github.com/dblock).
* [#57](https://github.com/mongoid/mongo_session_store/pull/57): Cover legacy session decoding and fix private decoder delegation in the plain-driver adapter - [@dblock](https://github.com/dblock).
* [#55](https://github.com/mongoid/mongo_session_store/pull/55): Add explicit bulk stale-session cleanup with an application-selected cutoff for both adapters - [@dblock](https://github.com/dblock).
* [#54](https://github.com/mongoid/mongo_session_store/pull/54): Document and test storing permitted parameter hashes rather than request-bearing Rails parameter objects in sessions - [@dblock](https://github.com/dblock).
* [#53](https://github.com/mongoid/mongo_session_store/pull/53): Cover Rails 6.1 through 8.0 in CI, update RuboCop, isolate Danger permissions, and report both adapters' coverage to Coveralls - [@dblock](https://github.com/dblock).
Expand Down
9 changes: 2 additions & 7 deletions spec/lib/mongo_session_store/version_spec.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
require "spec_helper"

describe "Version entry point" do
it "defines a frozen semantic version when loaded on its own" do
hide_const("MongoSessionStore::VERSION")
load File.expand_path("../../../lib/mongo_session_store/version.rb", __dir__)

describe MongoSessionStore do
it "defines a frozen semantic version" do
expect(MongoSessionStore::VERSION).to match(/\A\d+\.\d+\.\d+\z/)
expect(MongoSessionStore::VERSION).to be_frozen
ensure
MongoSessionStore.send(:remove_const, :VERSION) if MongoSessionStore.const_defined?(:VERSION)
end
end
Loading