I am new to Ruby and I am currently learning Ruby on Rails. I am learning testing and I was hoping that someone could explain the following line of code to me?
test "should require a name" do t = Treasure.new t.name = nil t.valid? refute_empty t.errors['name'] end

New Topic/Question
Reply



MultiQuote






|