Today I learned
  • Home
  • Github
  • Linkedin
  • Nomad Life(Travel Blog)
Sign in Subscribe

rspec

A collection of 3 posts
rspec

Fixing Rspec tests involving timestamps on CircleCI.

Use TimeCop gem or rspec be_within built in matcher to fix specs involving timestamps in CircleCI
Oct 7, 2018 1 min read
rails

Testing carrierwave file uploads with RSpec and FactoryGirl.

TLDR; In this blog post, I am gonna focus only on testing carrierwave. So if you are looking for instruction on installing/setting up carrierwave in your project I would suggest you looking at the carrierwave's wiki over here [https://github.com/carrierwaveuploader/carrierwave/wiki]. So let's assume we have
Apr 25, 2016 2 min read
ruby

Pundit for authorization with Rspec Rails

Authorization is one of the important feature of any web app. With rails you can leverage the power of all those wonderful open source gems that are available to you or you can code your own authorization module. The most commonly used gems for authorization are Pundit [http://github.com/
Oct 21, 2015 3 min read
Page 1 of 1
Today I learned © 2023
Powered by Ghost