Sha256: 6ec99c97a63e3fc21a432aca1d93467643c653270325e97a91edc89d378911a8
Contents?: true
Size: 773 Bytes
Versions: 31
Compression:
Stored size: 773 Bytes
Contents
Metasploit::Model::Spec.shared_examples_for 'Module::Author' do full_module_author_factory = "full_#{module_author_factory}" context 'factories' do context module_author_factory do subject(module_author_factory) do FactoryGirl.build(module_author_factory) end it { should be_valid } end context full_module_author_factory do subject(full_module_author_factory) do FactoryGirl.build(full_module_author_factory) end it { should be_valid } its(:email_address) { should_not be_nil } end end context 'validations' do it { should validate_presence_of(:author) } it { should validate_presence_of(:module_instance) } it { should_not validate_presence_of(:email_address) } end end
Version data entries
31 entries across 31 versions & 1 rubygems