Skip to content

How to Get Ruby, Rails, Chrome/Chromedriver, Capybara & RSpec Running Perfectly - strong testing setup using RSpec and Capybara.

Notifications You must be signed in to change notification settings

giljr/rspec-capybara-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSpec + Capybara + Rails Blog with Devise

This project is a Rails 7 blog application with full user authentication and post management. It uses Devise for authentication and Bootstrap 5 for styling, focusing on a clean interface and strong testing setup using RSpec and Capybara.

✨ Features

Authentication (Devise)

Sign up, login, logout

Account editing (name, email, password)

Flash messages styled with Bootstrap alerts

Navigation

Dynamic navbar (different links for visitors and logged-in users)

User dropdown with quick actions

Blog

Posts belong to a User

Create, edit, and delete posts

Public index and show screens

Each post shows author and view counter

Seed Data

Example user

Example posts linked to that user

⚙️ Setup

Clone the repository and install dependencies:

bundle install

Configure the database:

rails db:migrate
rails db:seed

Start the server:

rails server

Open in browser: http://localhost:3000

📂 Project Structure

Models

User (Devise: name, email, password)

Post (belongs_to User)

Controllers

Custom Devise controllers (users/registrations, users/sessions)

Views

Customized Devise views with Bootstrap

Post views (index, show, new, edit)

UI

Navbar with session management

Flash messages styled with Bootstrap

🔐 Authentication Flow

Visitors Can view posts (index, show)

Logged-in Users Can create, edit, and delete posts

Access account settings

Manage posts directly from the navbar dropdown

📖 Notes
Rails: 7.x
Devise: 4.9.2
Bootstrap: 5
Tests: RSpec + Capybara
Designed with LGPD/GDPR in mind

✍️ After Running Bundler Audit

Version Upgrade Recommendation Table

🚀 Next Steps

Improve post design/layout Add pagination Extend user profiles (avatars/bios) Increase test coverage

📚 Resources

This list groups all useful links for topic-based testing.

📚 Capybara


📚 RSpec


📚 Documentation


💎 Gems and Libraries


🌐 APIs

👀️ Tutorials

Screenshots

Root Page Posts Page
Root Page Posts Page
Log In Page Sign Up Page
Log In Page Sign Up Page
Signed Up Page Forgot Password Page
Signed Up Page Forgot Password Page
Change Password Page Edit User Page
Change Password Page Edit User Page

Authors

License

About

How to Get Ruby, Rails, Chrome/Chromedriver, Capybara & RSpec Running Perfectly - strong testing setup using RSpec and Capybara.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages