?
3 .
, , ?
( , ), "" . , , , .
- ?
. isa , Ruby Test:: Unit
readme. BDD
class UserTest < Test::Unit::TestCase
context "A User instance" do
setup do
@user = User.find(:first)
end
should "return its full name" do
assert_equal 'John Doe', @user.full_name
end
context "with a profile" do
setup do
@user.profile = Profile.find(:first)
end
should "return true when sent #has_profile?" do
assert @user.has_profile?
end
end
end
end
-, , ? ?
3 .
( , , , TDD). A unit test . , , , ( , "" ).
. . API , , , . , - ( ).
, . , , Selenium Waitr. , , , ( ), (, ).