1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-02 13:24:20 +01:00
fab-manager/test/models/organization_test.rb

15 lines
413 B
Ruby
Raw Normal View History

2016-08-01 17:36:38 +02:00
require 'test_helper'
class OrganizationTest < ActiveSupport::TestCase
2016-08-03 17:25:00 +02:00
test 'organization must have a name' do
a = Address.new({address: '14 avenue du Maréchal Tartanpion, 12345 Saint-Robert-sur-Mer'})
o = Organization.new({address: a})
assert o.invalid?
end
test 'organization must have an address' do
o = Organization.new({name: 'Menuiserie G. Dubois'})
assert o.invalid?
end
2016-08-01 17:36:38 +02:00
end