Aleksandar M.

Aleksandar M.

Snapshot Tests in React Using Jest
react

Snapshot Tests in React Using Jest

Writing tests might not have been the most enjoyable thing for you in the past but we for sure hope that after reading this article, you'll be able to increase the test coverage. Today we're talking about snapshot tests using Jest. They're easy to write, they're fast, and most importantly,
2 min read
Factory Girl (Bot) Associations
ruby on rails

Factory Girl (Bot) Associations

In this article we will go through how to generate the data for has_one, has_many and polymorphic associations using FactoryGirl. Every association will be described with an example, so you can get the idea how to create more complex factories with no pain. Generating the data for has_
2 min read
FactoryGirl (Bot) - create vs build vs build_stubbed
ruby on rails

FactoryGirl (Bot) - create vs build vs build_stubbed

If you are new to writing RSpec tests in Rails using FactoryGirl (bot), you can ask yourself what is the difference between create, build and build_stubbed. In this article, we will do our best to help you understand them better. Let's say we are testing a valid profile creation:
2 min read
Page 1 of 1