Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby On rails project without tests

I know it is not recommended but is there a way to generate/modify an existing project so it doesn't create test files when using generators such as rails generate controller NAME?

like image 823
Chris Muench Avatar asked Mar 05 '11 21:03

Chris Muench


People also ask

What is Minitest?

Minitest is a testing tool for Ruby that provides a complete suite of testing facilities. It also supports behaviour-driven development, mocking and benchmarking. With the release of Ruby 1.9, it was added to Ruby's standard library, which increased its popularity.

How do you run a Minitest in Rails?

To run a Minitest test, the only setup you really need is to require the autorun file at the beginning of a test file: require 'minitest/autorun' . This is good if you'd like to keep the code small. A better way to get started with Minitest is to have Bundler create a template project for you.

What is testing in Ruby on Rails?

By running your Rails tests you can ensure your code adheres to the desired functionality even after some major code refactoring. Rails tests can also simulate browser requests and thus you can test your application's response without having to test it through your browser.

What is Spec folder in Ruby on Rails?

Rails default testing framework gives you test folder for you rails default testing framework, if you want to use RSpec testing framework, which gives you folder called 'spec' RSPEC, it is your wish to select which option, RSPEC specs are more readable, people use both ways.


1 Answers

ruby script/generate controller Account --no-test-framework

Check out the API.

like image 197
thenengah Avatar answered Nov 03 '22 01:11

thenengah