Where is the .rspec configuration file located?

Working with the Ruby on Rails tutorial and getting stuck here. "To run RSpec and Spork using Autotest, we need to configure RSpec to use the -drb option by default, which we can arrange by adding it to the .rspec configuration file in the Rails root directory (Listing 3.14).

When I look at my file structure, I can not find a single file with the extension .rspec? How to access this file to update the configuration?

+3
source share
3 answers

If you are using a mac, you will not see these files the same way you will not see the gitignore file

, , ( )

mate .rspec

, , , .

+3

gem 'rspec-rails' Gemfile, rails g rspec:install. .rspec Rails. "spec_helper.rb"

, . Linux-, <ctrl-h>. ls -a unix, .

+1

mac, ., . , ls -a, "dotfiles", .

If this file does not exist yet (maybe it is not), you just need to create it using your favorite editor.

0
source

Source: https://habr.com/ru/post/1782321/


All Articles