Der Vortrag „Ruby-Running Tests“ von Eduonix Learning Solutions ist Bestandteil des Kurses „Ruby on Rails Testing and Final Development“. Der Vortrag ist dabei in folgende Kapitel unterteilt:
5 Sterne |
|
5 |
4 Sterne |
|
0 |
3 Sterne |
|
0 |
2 Sterne |
|
0 |
1 Stern |
|
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 ...