Planned and executed phase001
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# Phase 001 Execution
|
||||
|
||||
## Scope
|
||||
- Prepared the Rails/RSpec project baseline before adding application models.
|
||||
- Added a minimal visible root page for the application.
|
||||
- Documented the project test command.
|
||||
|
||||
## Changes
|
||||
- Confirmed `rspec-rails` and `factory_bot_rails` are present in the Gemfile.
|
||||
- Added `capybara` for system spec support.
|
||||
- Enabled RSpec spec type inference from file location.
|
||||
- Included FactoryBot syntax methods in RSpec configuration.
|
||||
- Configured system specs to use Capybara's `rack_test` driver by default.
|
||||
- Added `HomeController#index` as a placeholder landing page.
|
||||
- Set the root route to `home#index`.
|
||||
- Added a minimal root page view.
|
||||
- Added a request spec for `GET /`.
|
||||
- Added a system spec for the placeholder landing page.
|
||||
- Added `bundle exec rspec` to the CI sequence.
|
||||
- Updated `README.md` with the RSpec command and local CI command.
|
||||
|
||||
## Decisions
|
||||
- FactoryBot is the preferred future test data setup because it is already in the Gemfile.
|
||||
- Capybara is required because `rspec-rails` system specs depend on it for browser-style interactions.
|
||||
- `rack_test` is enough for the baseline placeholder system spec and avoids requiring Selenium before JavaScript browser coverage is needed.
|
||||
- No model specs were added because there are no real application models yet.
|
||||
- The root page is intentionally plain because Phase 001 only requires a visible landing point.
|
||||
- The documented test command is `bundle exec rspec`, matching project agent notes.
|
||||
|
||||
## Verification
|
||||
- Initial `bundle exec rspec` failed because `capybara` was not in the bundle.
|
||||
- After adding `capybara`, `bundle exec rspec` failed because the default system spec driver expected `selenium-webdriver`.
|
||||
- Configured system specs to use `rack_test`, then reran verification.
|
||||
- Passed: `bundle exec rspec`
|
||||
- Passed: `bin/rubocop`
|
||||
- Passed: `bin/ci`
|
||||
Reference in New Issue
Block a user