demarches-normaliennes/spec/models/rna_information_spec.rb

17 lines
510 B
Ruby
Raw Normal View History

2015-12-11 11:05:38 +01:00
require 'spec_helper'
describe RNAInformation do
describe 'databse columns' do
it { is_expected.to have_db_column(:association_id) }
it { is_expected.to have_db_column(:titre) }
it { is_expected.to have_db_column(:objet) }
it { is_expected.to have_db_column(:date_creation) }
it { is_expected.to have_db_column(:date_publication) }
it { is_expected.to have_db_column(:date_declaration) }
end
describe 'associations' do
it { is_expected.to belong_to(:entreprise) }
end
end