DEV Community

# rspec

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Intro to RSpec in Rails (part 1): Basic Syntax and Strategy for Testing

Intro to RSpec in Rails (part 1): Basic Syntax and Strategy for Testing

76
Comments 2
14 min read
RSpec best practice

RSpec best practice

57
Comments 5
4 min read
Intro to RSpec in Rails (part 2): Improving Tests with `let` and `context`

Intro to RSpec in Rails (part 2): Improving Tests with `let` and `context`

42
Comments 1
8 min read
Rails API with a frontend built in React, Part I.

Rails API with a frontend built in React, Part I.

41
Comments
8 min read
Have you heard of API Blueprint? 📘

Have you heard of API Blueprint? 📘

40
Comments 3
3 min read
A Fixture-Based Approach to Interface Testing in Rails

A Fixture-Based Approach to Interface Testing in Rails

39
Comments 6
12 min read
Using KnapsackPro to Parallelize Your Tests

Using KnapsackPro to Parallelize Your Tests

29
Comments 2
7 min read
Testing CRUD with RSpec and Rails

Testing CRUD with RSpec and Rails

26
Comments
6 min read
Simplify Rails Views Using ViewComponents with Tailwind CSS and RSpec

Simplify Rails Views Using ViewComponents with Tailwind CSS and RSpec

25
Comments 2
4 min read
"Back to the future" or how to test time-based logic in Rails

"Back to the future" or how to test time-based logic in Rails

25
Comments
3 min read
Introduce RSpec Request Spec

Introduce RSpec Request Spec

24
Comments 3
9 min read
Test downloaded files with RSpec and System Tests

Test downloaded files with RSpec and System Tests

22
Comments 1
2 min read
Code Review #0: Sleet 23:44

Code Review #0: Sleet

22
Comments 2
1 min read
Setup RSpec on a fresh Rails 7 project

Setup RSpec on a fresh Rails 7 project

22
Comments 7
2 min read
How to RSpec your sidekiq-scheduler

How to RSpec your sidekiq-scheduler

18
Comments 3
3 min read
RSpec, use_transaction_fixtures and after_commit

RSpec, use_transaction_fixtures and after_commit

18
Comments 3
3 min read
The difference between Mocks, Stubs, and Spies

The difference between Mocks, Stubs, and Spies

17
Comments
3 min read
The optimal way to create a set of records with FactoryBot.create_list & FactoryBot.build_list

The optimal way to create a set of records with FactoryBot.create_list & FactoryBot.build_list

16
Comments 2
3 min read
Testing best practices

Testing best practices

16
Comments
4 min read
Test-Driven Development with RSpec in Rails

Test-Driven Development with RSpec in Rails

15
Comments
5 min read
Improve Rspec Pipeline Performance

Improve Rspec Pipeline Performance

14
Comments
6 min read
Basic Ruby Calculator with RSpec

Basic Ruby Calculator with RSpec

14
Comments 4
8 min read
Run YARD as RSpec

Run YARD as RSpec

14
Comments 1
2 min read
Unit testing with RSpec - Model Spec

Unit testing with RSpec - Model Spec

13
Comments
4 min read
Testing: Mock And Stub

Testing: Mock And Stub

13
Comments
2 min read
Testing with RSpec - Request Spec

Testing with RSpec - Request Spec

13
Comments
4 min read
Many ways to write RSpec custom matchers

Many ways to write RSpec custom matchers

13
Comments 3
9 min read
Authentication with Sorcery, RSpec, and Rails 7: Building a simple Rails CMS - Part 1

Authentication with Sorcery, RSpec, and Rails 7: Building a simple Rails CMS - Part 1

13
Comments
16 min read
Anonymous Controller tests for Request Spec

Anonymous Controller tests for Request Spec

12
Comments
2 min read
Test ALL your static pages in rails with one simple test

Test ALL your static pages in rails with one simple test

12
Comments 2
2 min read
Ruby on Rails Testing Resources

Ruby on Rails Testing Resources

12
Comments
3 min read
How to Deal with 1,000 Failing Specs in a Rails App

How to Deal with 1,000 Failing Specs in a Rails App

12
Comments
7 min read
Shared Examples and Contexts in RSpec

Shared Examples and Contexts in RSpec

12
Comments 1
4 min read
Rails RSpec Setup

Rails RSpec Setup

11
Comments
4 min read
Setting up BDD RSpec Test Suite for Rails API

Setting up BDD RSpec Test Suite for Rails API

11
Comments
3 min read
Testing rescue with RSpec

Testing rescue with RSpec

11
Comments
1 min read
📣 New Gem! rspec-dry-types

📣 New Gem! rspec-dry-types

11
Comments
2 min read
Simple trick to make FactoryBot work with STI

Simple trick to make FactoryBot work with STI

11
Comments 5
2 min read
Testing external APIs with Rspec and WebMock

Testing external APIs with Rspec and WebMock

11
Comments 1
4 min read
Quick tip: stub requests to unix sockets

Quick tip: stub requests to unix sockets

10
Comments
1 min read
Build a Custom RSpec Matcher for Comparing DateTimes

Build a Custom RSpec Matcher for Comparing DateTimes

10
Comments
4 min read
Configure VCR with RSpec

Configure VCR with RSpec

10
Comments
4 min read
Behaviour Driven Development in Ruby with RSpec

Behaviour Driven Development in Ruby with RSpec

10
Comments 1
12 min read
Run your Capybara tests on different devices

Run your Capybara tests on different devices

10
Comments
1 min read
Review on doing TDD for 14 days, 100% test coverage 😱

Review on doing TDD for 14 days, 100% test coverage 😱

10
Comments
1 min read
Explaining RSpec describe, context in 2 minutes

Explaining RSpec describe, context in 2 minutes

10
Comments
1 min read
Setup Rspec and Simplecov for Rails project on Docker

Setup Rspec and Simplecov for Rails project on Docker

10
Comments
2 min read
Explaining RSpec instance_double in 2 minutes

Explaining RSpec instance_double in 2 minutes

10
Comments
1 min read
Automated debugging with git bisect and rspec

Automated debugging with git bisect and rspec

10
Comments
4 min read
Understanding Rspec Best Practices

Understanding Rspec Best Practices

9
Comments
5 min read
How to test solidity smart contracts with ruby, RSpec and Etherium.rb

How to test solidity smart contracts with ruby, RSpec and Etherium.rb

9
Comments
3 min read
Have a little RSpec(t)

Have a little RSpec(t)

9
Comments
3 min read
When not to use instance variables in RSpec

When not to use instance variables in RSpec

9
Comments
8 min read
How to optimize factory creation.

How to optimize factory creation.

9
Comments
5 min read
Building API in Rails Series

Building API in Rails Series

8
Comments
1 min read
Why Choose `let` Over instance variables in RSpec

Why Choose `let` Over instance variables in RSpec

8
Comments 5
3 min read
Simple testing of Rails cache with RSpec

Simple testing of Rails cache with RSpec

8
Comments
1 min read
Speed up your TDD by refactoring rails_helper.rb

Speed up your TDD by refactoring rails_helper.rb

8
Comments
3 min read
Fast(er) tests with Stunt Doubles and VCR Recordings.

Fast(er) tests with Stunt Doubles and VCR Recordings.

8
Comments
8 min read
Learning RSpec: First Tests for a Rails App

Learning RSpec: First Tests for a Rails App

8
Comments 3
2 min read
loading...