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:
5 Stars |
|
5 |
4 Stars |
|
0 |
3 Stars |
|
0 |
2 Stars |
|
0 |
1 Star |
|
0 |
... 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 = Post.new(:title => “Some ...