diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 5b9ce215a7..8d068dfad7 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -31,4 +31,4 @@ jobs: bundle config path vendor/bundle bundle install --jobs 4 --retry 3 - name: Run tests - run: bundle exec rspec + run: npm run test-all diff --git a/.rspec b/.rspec index c99d2e7396..ce202e209d 100644 --- a/.rspec +++ b/.rspec @@ -1 +1,3 @@ --require spec_helper +--color spec +--format Fuubar diff --git a/Gemfile b/Gemfile index 377f572bca..a1592b7df2 100644 --- a/Gemfile +++ b/Gemfile @@ -73,6 +73,7 @@ group :development, :test do gem 'selenium-webdriver' # Easy installation and use of web drivers to run system tests with browsers gem 'webdrivers' + gem 'fuubar' end gem 'zeitwerk', '~> 2.3' diff --git a/Gemfile.lock b/Gemfile.lock index 091f89663f..adff4caece 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -106,6 +106,9 @@ GEM faker (2.11.0) i18n (>= 1.6, < 2) ffi (1.12.2) + fuubar (2.3.2) + rspec-core (~> 3.0) + ruby-progressbar (~> 1.4) globalid (0.4.2) activesupport (>= 4.2.0) i18n (1.8.2) @@ -210,6 +213,7 @@ GEM rspec-support (3.9.3) ruby-debug-ide (0.7.2) rake (>= 0.8.1) + ruby-progressbar (1.10.1) ruby_dep (1.5.0) rubyzip (2.3.0) sass-rails (6.0.0) @@ -276,6 +280,7 @@ DEPENDENCIES dotenv-rails factory_bot_rails faker + fuubar inline_svg jbuilder (~> 2.7) kaminari diff --git a/package.json b/package.json index 1b29b8d95d..3ee2a45e0b 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,11 @@ "author": "Adrian Marin ", "license": "MIT", "private": true, + "scripts": { + "test": "bundle exec rspec ./spec --tag ~type:system", + "test-system": "bundle exec rspec ./spec --tag type:system", + "test-all": "bundle exec rspec ./spec" + }, "dependencies": { "@rails/actioncable": "^6.0.2-1", "@rails/activestorage": "^6.0.2-1", diff --git a/spec/features/avocado/resources_controller_spec.rb b/spec/features/avocado/resources_controller_spec.rb new file mode 100644 index 0000000000..4f2cc9dcf6 --- /dev/null +++ b/spec/features/avocado/resources_controller_spec.rb @@ -0,0 +1,7 @@ +require 'rails_helper' + +RSpec.feature "ResourcesControllers", type: :feature do + it 'returns true' do + expect(true).to be true + end +end