Added loads
This commit is contained in:
14
test/models/company_test.rb
Normal file
14
test/models/company_test.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
require "test_helper"
|
||||
|
||||
class CompanyTest < ActiveSupport::TestCase
|
||||
test "compnay name can not be blank" do
|
||||
c = Company.new
|
||||
assert !c.save
|
||||
end
|
||||
|
||||
test "company name must be unique" do
|
||||
c = Company.new
|
||||
c.name = "HiddenAgendaLtd"
|
||||
assert !c.save
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user