Skip to content

Commit 589b782

Browse files
authored
Merge pull request #53 from blocknotes/test/update-test-suite
test: Update test suite
2 parents bd32c5f + 554f608 commit 589b782

19 files changed

Lines changed: 1337 additions & 235 deletions

.github/workflows/specs_rails61.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
ruby: ['3.0', '3.1', '3.2']
18+
ruby: ['3.2']
1919
gemfile: ['rails61_activeadmin29', 'rails61_activeadmin']
2020

2121
env:

.github/workflows/specs_rails70.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
ruby: ['3.0', '3.1', '3.2']
18+
ruby: ['3.3']
1919
gemfile: ['rails70_activeadmin']
2020

2121
env:
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Specs Rails 7.1
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
tests:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
ruby: ['3.2', '3.4']
19+
gemfile: ['rails71_activeadmin']
20+
21+
env:
22+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Ruby
29+
uses: ruby/setup-ruby@v1
30+
with:
31+
ruby-version: ${{ matrix.ruby }}
32+
bundler-cache: true
33+
34+
- name: Run tests
35+
run: bundle exec rspec --profile
36+
37+
- name: On failure, archive screenshots as artifacts
38+
uses: actions/upload-artifact@v4
39+
if: failure()
40+
with:
41+
name: test-failed-screenshots
42+
path: spec/dummy/tmp/screenshots
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Specs Rails 7.2
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
tests:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
ruby: ['3.2', '3.4']
19+
gemfile: ['rails72_activeadmin']
20+
21+
env:
22+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Ruby
29+
uses: ruby/setup-ruby@v1
30+
with:
31+
ruby-version: ${{ matrix.ruby }}
32+
bundler-cache: true
33+
34+
- name: Run tests
35+
run: bundle exec rspec --profile
36+
37+
- name: On failure, archive screenshots as artifacts
38+
uses: actions/upload-artifact@v4
39+
if: failure()
40+
with:
41+
name: test-failed-screenshots
42+
path: spec/dummy/tmp/screenshots
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Specs Rails 8.0
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
tests:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
ruby: ['3.2', '3.4']
19+
gemfile: ['rails80_activeadmin']
20+
21+
env:
22+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Ruby
29+
uses: ruby/setup-ruby@v1
30+
with:
31+
ruby-version: ${{ matrix.ruby }}
32+
bundler-cache: true
33+
34+
- name: Run tests
35+
run: bundle exec rspec --profile
36+
37+
- name: On failure, archive screenshots as artifacts
38+
uses: actions/upload-artifact@v4
39+
if: failure()
40+
with:
41+
name: test-failed-screenshots
42+
path: spec/dummy/tmp/screenshots

Appraisals

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,13 @@ appraise 'rails71-activeadmin' do
1919
gem 'activeadmin'
2020
gem 'rails', '~> 7.1.0'
2121
end
22+
23+
appraise 'rails72-activeadmin' do
24+
gem 'activeadmin'
25+
gem 'rails', '~> 7.2.0'
26+
end
27+
28+
appraise 'rails80-activeadmin' do
29+
gem 'activeadmin'
30+
gem 'rails', '~> 8.0.0'
31+
end

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
[![gem version](https://badge.fury.io/rb/activeadmin_quill_editor.svg)](https://badge.fury.io/rb/activeadmin_quill_editor)
33
[![gem downloads](https://badgen.net/rubygems/dt/activeadmin_quill_editor)](https://rubygems.org/gems/activeadmin_quill_editor)
44
[![linters](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/linters.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/linters.yml)
5+
56
[![specs Rails 6.1](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails61.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails61.yml)
67
[![specs Rails 7.0](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails70.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails70.yml)
8+
[![Specs Rails 7.1](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails71.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails71.yml)
9+
[![Specs Rails 7.2](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails72.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails72.yml)
10+
[![Specs Rails 8.0](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails80.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails80.yml)
711

812
An Active Admin plugin to use [Quill Rich Text Editor](https://github.com/quilljs/quill) in form fields.
913

gemfiles/rails61_activeadmin.gemfile

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,27 @@
22

33
source "https://rubygems.org"
44

5+
gem "sqlite3"
6+
gem "bigdecimal"
7+
gem "mutex_m"
8+
gem "puma"
9+
gem "sassc"
10+
gem "sprockets-rails"
11+
gem "capybara"
12+
gem "cuprite"
13+
gem "rspec_junit_formatter"
14+
gem "rspec-rails"
15+
gem "rspec-retry"
16+
gem "fasterer"
17+
gem "rubocop"
18+
gem "rubocop-capybara"
19+
gem "rubocop-packaging"
20+
gem "rubocop-performance"
21+
gem "rubocop-rails"
22+
gem "rubocop-rspec"
23+
gem "rubocop-rspec_rails"
24+
gem "pry-rails"
525
gem "activeadmin"
626
gem "rails", "~> 6.1.0"
727

8-
group :development, :test do
9-
gem "puma"
10-
gem "sassc"
11-
gem "sprockets-rails"
12-
gem "sqlite3"
13-
gem "capybara"
14-
gem "cuprite"
15-
gem "rspec_junit_formatter"
16-
gem "rspec-rails"
17-
gem "rspec-retry"
18-
gem "fasterer"
19-
gem "rubocop"
20-
gem "rubocop-packaging"
21-
gem "rubocop-performance"
22-
gem "rubocop-rails"
23-
gem "rubocop-rspec"
24-
gem "pry-rails"
25-
end
26-
2728
gemspec path: "../"

gemfiles/rails61_activeadmin.gemfile.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ GEM
8585
activesupport (>= 3.0.0)
8686
ruby2_keywords (>= 0.0.2)
8787
ast (2.4.2)
88+
bigdecimal (3.1.9)
8889
builder (3.2.4)
8990
capybara (3.40.0)
9091
addressable
@@ -158,6 +159,7 @@ GEM
158159
method_source (1.0.0)
159160
mini_mime (1.1.5)
160161
minitest (5.22.2)
162+
mutex_m (0.3.0)
161163
net-imap (0.4.10)
162164
date
163165
net-protocol
@@ -166,7 +168,6 @@ GEM
166168
net-protocol (0.2.2)
167169
timeout
168170
net-smtp (0.4.0.1)
169-
net-protocol
170171
nio4r (2.7.0)
171172
nokogiri (1.16.2-arm64-darwin)
172173
racc (~> 1.4)
@@ -281,6 +282,8 @@ GEM
281282
rubocop (~> 1.40)
282283
rubocop-capybara (~> 2.17)
283284
rubocop-factory_bot (~> 2.22)
285+
rubocop-rspec_rails (2.28.3)
286+
rubocop (~> 1.40)
284287
ruby-progressbar (1.13.0)
285288
ruby2_keywords (0.0.5)
286289
ruby_parser (3.21.0)
@@ -322,20 +325,24 @@ DEPENDENCIES
322325
activeadmin
323326
activeadmin_quill_editor!
324327
appraisal (~> 2.4)
328+
bigdecimal
325329
capybara
326330
cuprite
327331
fasterer
332+
mutex_m
328333
pry-rails
329334
puma
330335
rails (~> 6.1.0)
331336
rspec-rails
332337
rspec-retry
333338
rspec_junit_formatter
334339
rubocop
340+
rubocop-capybara
335341
rubocop-packaging
336342
rubocop-performance
337343
rubocop-rails
338344
rubocop-rspec
345+
rubocop-rspec_rails
339346
sassc
340347
sprockets-rails
341348
sqlite3

gemfiles/rails61_activeadmin29.gemfile

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,27 @@
22

33
source "https://rubygems.org"
44

5+
gem "sqlite3"
6+
gem "bigdecimal"
7+
gem "mutex_m"
8+
gem "puma"
9+
gem "sassc"
10+
gem "sprockets-rails"
11+
gem "capybara"
12+
gem "cuprite"
13+
gem "rspec_junit_formatter"
14+
gem "rspec-rails"
15+
gem "rspec-retry"
16+
gem "fasterer"
17+
gem "rubocop"
18+
gem "rubocop-capybara"
19+
gem "rubocop-packaging"
20+
gem "rubocop-performance"
21+
gem "rubocop-rails"
22+
gem "rubocop-rspec"
23+
gem "rubocop-rspec_rails"
24+
gem "pry-rails"
525
gem "activeadmin", "~> 2.9.0"
626
gem "rails", "~> 6.1.0"
727

8-
group :development, :test do
9-
gem "puma"
10-
gem "sassc"
11-
gem "sprockets-rails"
12-
gem "sqlite3"
13-
gem "capybara"
14-
gem "cuprite"
15-
gem "rspec_junit_formatter"
16-
gem "rspec-rails"
17-
gem "rspec-retry"
18-
gem "fasterer"
19-
gem "rubocop"
20-
gem "rubocop-packaging"
21-
gem "rubocop-performance"
22-
gem "rubocop-rails"
23-
gem "rubocop-rspec"
24-
gem "pry-rails"
25-
end
26-
2728
gemspec path: "../"

0 commit comments

Comments
 (0)