Reputation: 11649
I have generated the project using
rails new app -T
Shouldn't this command make a test folder by default?
I am trying to add the test
folder in my ruby project. here is my gem
file:
group :development, :test do
gem 'rspec', '~> 3.4'
gem 'byebug'
gem 'sqlite3'
end
and then :
bundle install --without production
it does not generate the test folder inside my project even after refreshing the project?
Upvotes: 0
Views: 1306
Reputation: 4596
Since you are using RoR, if think you need to install rspec-rails
instead of rspec
. To create the test
directory (spec
, actually) you need to run the rspec installer: rails generate rspec:install
With -T
option your are skipping the unit-test
framework because you want to use rspec
, am I right? If this is the case you don't need a test directory. rspec
uses the spec directory instead. As I said, to create the spec folder you need to run the rspec
installer like this:
rails generate rspec:install
Upvotes: 7