Skip to content

Commit

Permalink
Fix failing test and update CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
nanego committed Dec 7, 2022
1 parent 31ecd78 commit 74dc9b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
ruby-version: ['2.6']
ruby-version: ['2.7']
fail-fast: false

services:
Expand All @@ -31,7 +31,7 @@ jobs:
steps:
- name: Checkout main app
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Update package archives
run: sudo apt-get update --yes --quiet
Expand All @@ -40,9 +40,10 @@ jobs:
run: sudo apt-get install libpq-dev

- name: Set up Ruby
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Set up Bundler
run: |
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/servers_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ServersControllerTest < ActionController::TestCase
test "should show server" do
get :show, params: {id: @server}
assert_response :success
assert_select 'dt', "Position:"
assert_select 'dt', "Position :"
end

test "should show server using id" do
Expand Down

0 comments on commit 74dc9b7

Please sign in to comment.