Skip to content

Commit

Permalink
#61 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Nov 22, 2024
1 parent 10bef0c commit 67e0d51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
svn export https://svn.redmine.org/redmine/branches/6.0-stable/ /opt/redmine
sed -i "s/gem 'net-imap'/#gem 'net-imap'/" /opt/redmine/Gemfile
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Link the plugin
# Link the plugin to the redmine folder
run: |
Expand Down
5 changes: 3 additions & 2 deletions test/functional/account_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ def test_login
assert_response :success
end

def test_logout_oauth
def test_logout
post '/login', params: { username: 'jsmith', password: 'jsmith' }
Setting.plugin_redmine_oauth[:oauth_logout] = ''
post '/logout'
assert_redirected_to home_path
end

def test_logout
def test_logout_oauth
post '/login', params: { username: 'jsmith', password: 'jsmith' }
cookies[:oauth_login] = true
Setting.plugin_redmine_oauth[:oauth_logout] = '1'
site = 'https://login.microsoftonline.com'
Setting.plugin_redmine_oauth[:site] = site
Expand Down

0 comments on commit 67e0d51

Please sign in to comment.