DEV Community

# rspec

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Setup Rspec and Simplecov for Rails project on Docker

Setup Rspec and Simplecov for Rails project on Docker

10
Comments
2 min read
Why Choose `let` Over instance variables in RSpec

Why Choose `let` Over instance variables in RSpec

8
Comments 5
3 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

10
Comments
3 min read
Rails: Easily allow Capybara to find elements with a helper method.

Rails: Easily allow Capybara to find elements with a helper method.

6
Comments
1 min read
Parallelism and custom variables in CircleCI

Parallelism and custom variables in CircleCI

6
Comments
1 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
Faster module tests with Facter 4 and rspec-puppet

Faster module tests with Facter 4 and rspec-puppet

6
Comments
6 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

14
Comments
16 min read
Custom authentication flow with Sorcery gem, RSpec, and Rails 7 - Pt. 1

Custom authentication flow with Sorcery gem, RSpec, and Rails 7 - Pt. 1

6
Comments
4 min read
Setup RSpec on a fresh Rails 7 project

Setup RSpec on a fresh Rails 7 project

30
Comments 7
2 min read
ActiveStorage, Ruby on Rails 7, GraphQL and RSpec

ActiveStorage, Ruby on Rails 7, GraphQL and RSpec

5
Comments
4 min read
Screencast: Add welcome emails to Happi

Screencast: Add welcome emails to Happi

5
Comments 3
1 min read
Authenticating Rails API with JWT.

Authenticating Rails API with JWT.

4
Comments
1 min read
How to use Sentry for profiling a test suite

How to use Sentry for profiling a test suite

3
Comments
5 min read
How To Write Route53 Stubbed Responses For Rspec Tests

How To Write Route53 Stubbed Responses For Rspec Tests

4
Comments
5 min read
Introduce RSpec Request Spec

Introduce RSpec Request Spec

30
Comments 3
9 min read
介紹 RSpec Request Spec

介紹 RSpec Request Spec

4
Comments
5 min read
System testing for Rails application without Capybara, using Puppeteer

System testing for Rails application without Capybara, using Puppeteer

3
Comments
4 min read
Understanding Rspec Best Practices

Understanding Rspec Best Practices

9
Comments
5 min read
RSpec, use_transaction_fixtures and after_commit

RSpec, use_transaction_fixtures and after_commit

18
Comments 3
3 min read
Testing CSV and Excel uploads with tempfiles

Testing CSV and Excel uploads with tempfiles

5
Comments
3 min read
What Ruby code to expect from a testing DSL?

What Ruby code to expect from a testing DSL?

6
Comments
3 min read
How to Test Rake Tasks in RSpec Without Rails

How to Test Rake Tasks in RSpec Without Rails

8
Comments
2 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
Instant test feedback with vscode

Instant test feedback with vscode

2
Comments
1 min read
The 5 Rules of Simple RSpec Tests

The 5 Rules of Simple RSpec Tests

6
Comments
4 min read
Rspec Cheat Sheet

Rspec Cheat Sheet

4
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
Passings args into Rspec Shared Examples

Passings args into Rspec Shared Examples

5
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
Testing external APIs with Rspec and WebMock

Testing external APIs with Rspec and WebMock

11
Comments 1
4 min read
Test Rails API with json type

Test Rails API with json type

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

Build a Custom RSpec Matcher for Comparing DateTimes

10
Comments
4 min read
RSpec fundamentals: setup, naming and basic structure

RSpec fundamentals: setup, naming and basic structure

2
Comments
4 min read
Basic Ruby Calculator with RSpec

Basic Ruby Calculator with RSpec

15
Comments 4
8 min read
RSpec: do not verify hash keys separately

RSpec: do not verify hash keys separately

6
Comments 3
1 min read
RSpec: what's important for the test

RSpec: what's important for the test

5
Comments
1 min read
Which test will fall if we delete this piece of code?

Which test will fall if we delete this piece of code?

5
Comments
1 min read
RSpec & Rails: how to test callbacks

RSpec & Rails: how to test callbacks

5
Comments
1 min read
RSpec: when to use double instead of instance_double

RSpec: when to use double instead of instance_double

3
Comments 2
1 min read
Please don't test attr_reader, attr_writer, or attr_accessor

Please don't test attr_reader, attr_writer, or attr_accessor

7
Comments
1 min read
Why avoid too many abstractions in tests?

Why avoid too many abstractions in tests?

4
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
Explaining RSpec minimal code style rules in 2 minutes

Explaining RSpec minimal code style rules in 2 minutes

3
Comments
2 min read
Explaining RSpec describe, context in 2 minutes

Explaining RSpec describe, context in 2 minutes

11
Comments
1 min read
Explaining RSpec instance_double in 2 minutes

Explaining RSpec instance_double in 2 minutes

10
Comments
1 min read
Explaining RSpec doubles, mocks and stubs in 2 minutes

Explaining RSpec doubles, mocks and stubs in 2 minutes

9
Comments
2 min read
How to test whenever config

How to test whenever config

4
Comments
1 min read
Instant test feedback with vim-test

Instant test feedback with vim-test

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

Automated debugging with git bisect and rspec

10
Comments
4 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
Testing CRUD with RSpec and Rails

Testing CRUD with RSpec and Rails

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

Learning RSpec: First Tests for a Rails App

8
Comments 3
2 min read
Don't forget `as: :json` when testing JSON API

Don't forget `as: :json` when testing JSON API

3
Comments 2
1 min read
Setting Up a Basic Unit Test with RSpec

Setting Up a Basic Unit Test with RSpec

6
Comments
3 min read
Anatomy of a Rspec Test

Anatomy of a Rspec Test

5
Comments
2 min read
Writing RSpec tests for great debugging experiences

Writing RSpec tests for great debugging experiences

7
Comments 2
7 min read
Ruby Newby, Testing with rspec part I

Ruby Newby, Testing with rspec part I

6
Comments
5 min read
The difference between Mocks, Stubs, and Spies

The difference between Mocks, Stubs, and Spies

19
Comments
3 min read
RSpec(Pt. 3): Test Doubles

RSpec(Pt. 3): Test Doubles

5
Comments
4 min read
loading...