Home>

It is set to move rspec at the time of commit by linking bitbucket and CircleCI.
I also set rubocop, which works fine, but rspec gives an error. Even though I am a beginner, I searched and tried to fix it, but I got stuck, so I would appreciate your advice.

・ Supplementary information
ruby2.5.1
rails 5.2.1
Docker installed
App name pagesample

config.yml
version: 2.1
jobs: jobs:
  rspec:
    working_directory: ~/pagesample
    docker:
      --image: circleci/ruby: 2.5.1
    steps: steps:
      --checkout
      --setup_remote_docker
      --run:
          name: Setup environment variable
          command: |
            echo "export COMPOSE_FILE = docker-compose.ci.yml" >>$BASH_ENV
      --run:
          name: Start containers and verify it is working
          command: |
            set -x
            docker-compose up -d
            docker exec pagesample_app curl -4 --retry 10 --retry-delay 3 --retry-connrefused http: // localhost: 3000
      --run:
          name: Setup database
          command: |
            docker-compose exec pagesample bash -c'yes n | bundle exec rails g spree: install --migrate --seed --sample --auto_accept'
      --run:
          name: Run rspec
          command: docker-compose exec pagesample rspec
  rubocop:
  (Omitted)
  heroku_deploy:
 (Omitted)
orbs:
  build-tools: circleci/[email protected]
  jq: circleci/[email protected]
workflows:
  version: 2.1
  build:
    jobs: jobs:
      --rspec
      --rubocop
      --heroku_deploy:
          requires: requires:
            --rspec
            --rubocop


rspec error statement