K-Sato' Blog
About me

Always eager to learn new things

0Hits

    How to create your own gem

    How to create and publish your own gem.

    2 min readLang: ENWritten by: K-Sato

    My Journey of Go ② (Loops, Conditions)

    How looping and conditional statements work in Go.

    1 min readLang: ENWritten by: K-Sato

    My Journey of Go ① (Functions, Variables)

    My Journey of Go is a collection of posts about what I learned from A Tour of Go. I made this series to solidify my knowledge of Go language.

    1 min readLang: ENWritten by: K-Sato

    Rspec Basics ③ (Useful Gems)

    In this post, I'll introduce 3 extremely useful gems you can use with Rspc. These gems enable you to write better specs and save yourself a lot of time.You need to define multiple sets of data in order to test all the given methods, features and objects. This can be quite tedious and tiring if you have to do it over and over again. This is where factory_bot comes in! It allows you to create an object or a collection of objects with predefined sets of values.

    1 min readLang: ENWritten by: K-Sato

    Rspec Basics ② (Hooks, Subject, Mocks, Stubs)

    You can specify when to run a set of code by using hooks. The most common hooks in Rspec are before and after hooks. With before and after hooks, you can create, delete or update the data very flexibly. The Let keyword helps DRY up your tests. If you write let(:foo){ ... }, you can retribute values that are defines in { ... } from foo.

    2 min readLang: ENWritten by: K-Sato

    Rspec Basics ① (describe, it, matchers)

    RSpec is a Behaviour-Driven Development tool for Ruby programmers. BDD is an approach to software development that combines Test-Driven Development, Domain Driven Design, and Acceptance Test-Driven Planning. How to install Rspec on your RoR applications? You have to add rspec-rails to both the :development and :test groups in the Gemfile.

    2 min readLang: ENWritten by: K-Sato
    ‹ Newer postsPage 18 of 19Older posts ›
    K-Sato's Blog
    Icons made byKiranshastryfromwww.flaticon.com