Today, we are going to continue creating the Ruby gem and, specifically, we will take care of the testing suite. You will learn how to setup RSpec, create a Rails dummy application, define and test generator tasks, and how to test Rake tasks. Also, we will integrate your code with Travis CI and Codecov services.
Timecodes:
00:04 Introduction
01:03 Adding dependencies
02:31 Creating Rails dummy app for testing
03:50 Adding spec_helper.rb
05:10 ENV variables
06:19 Testing attr writers with class double
09:07 Creating generator (installation task)
10:30 Testing generator task
12:06 Creating Rake tasks and a Railtie
13:53 Testing Rake tasks
16:07 Setting up TravisCI and Codecov
17:55 Observing results
18:45 Adding Travis and Codecov badges
19:15 Outro
First part of the series: [ Ссылка ]
Third part of the series: [ Ссылка ]
Textual version: [ Ссылка ]
Russian version: [ Ссылка ]
#Lokalise #l10n #Ruby
Ещё видео!