Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Merge requests
  • !1475

It should be possible to run every spec individually

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Pablo Brasero requested to merge github/fork/pablobm/run-individual-specs into master Nov 29, 2019
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 21

I noticed that some specs can't be run individually, as their dependencies are not correct. This can become rather inconvenient while debugging Administrate. This PR fixes this issue.

A way to check that specs run individually is with the following one-liner:

$ find spec | grep _spec.rb | while read spec; do bundle exec rspec $spec; done

This includes some changes that are not really necessary, but I think make the specs make more sense. I'm referring mainly to things like spec/generators/assets/javascripts_generator_spec.rb, where I make sure that support/generator_spec_helpers is required before the tested code, because I feel that the helpers should be loaded first (like spec_helper or rails_helper) are.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/pablobm/run-individual-specs