Ruby-Running Tests by Eduonix Learning Solutions

video locked

About the Lecture

The lecture Ruby-Running Tests by Eduonix Learning Solutions is from the course Ruby on Rails Testing and Final Development. It contains the following chapters:

  • Theoretical Basics
  • Model Test
  • Validation Test
  • Controller Test

Author of lecture Ruby-Running Tests

 Eduonix Learning Solutions

Eduonix Learning Solutions

Customer reviews

5,0 of 5 stars
5 Stars
4 Stars
3 Stars
2 Stars
1  Star

Excerpts from the accompanying material

... producing skeleton test code in the background while you are creating your models and controllers. By simply running your Rails tests ...

... have a separate database for testing. This will keep data ...

... a folder named “Test” with 5 ...

... the YAML file format # Sample YAML File post1: name: A sample ...

... or scaffolds, Rails will create test files for that resource. ...

... class PostTest < ActiveSupport::TestCase # Replace this with your real tests. test "the ...

... test_valid_password or like testValidPassword. But in test stubs, we can use more readable ...

... value = that value? If is an object nil? If a line of code throw an exception is a ...

... Your database should be current. So run Rake db:migrate To make sure ...

... a certain test ruby -Itest test/unit/post_test.rb -n test_the_truth Your result will look ...

... "if post has title" do post = => “Some ...

Unlock lecture 5.90