-
Notifications
You must be signed in to change notification settings - Fork 230
Change CI settings for support Ruby3.0+ Rails6.1+ #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
2591eb2
1018b8b
c2d07ed
7bf2e08
edc84d0
23aacc1
f4b659d
4b7b65b
7c202b5
e39ce33
2d2f5cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'rails', '~> 6.0.0' | ||
gem 'rails', '~> 7.1.0' | ||
gem 'rails-controller-testing' | ||
gem 'sqlite3', '~> 1.4' | ||
|
||
gem 'rspec-rails', '>= 6.1' | ||
gemspec path: '..' |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,9 +129,11 @@ | |
end | ||
|
||
context "with 'session_timeout_from_last_action'" do | ||
before { create_new_user } | ||
after { User.delete_all } | ||
|
||
it 'does not logout if there was activity' do | ||
sorcery_controller_property_set(:session_timeout_from_last_action, true) | ||
expect(User).to receive(:authenticate).with('[email protected]', 'secret') { |&block| block.call(user, nil) } | ||
joshbuker marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
get :test_login, params: { email: '[email protected]', password: 'secret' } | ||
Timecop.travel(Time.now.in_time_zone + 0.3) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,10 +63,6 @@ | |
it 'writes user id in session' do | ||
expect(session[:user_id]).to eq user.id.to_s | ||
end | ||
|
||
it 'sets csrf token in session' do | ||
expect(session[:_csrf_token]).not_to be_nil | ||
end | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because this touches csrf, I'll need to verify before merging this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test does not fail, and should not be removed. |
||
end | ||
|
||
context 'when fails' do | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
>=
version locks can cause issues, but I'm not concerned enough about it to block the PR.