Sha256: 47984df30b38abcceec85b61f944bcab82dc51f8383f0f8c60c4d4088111a5dc
Contents?: true
Size: 639 Bytes
Versions: 31
Compression:
Stored size: 639 Bytes
Contents
Metasploit::Model::Spec.shared_examples_for 'Module::Action' do context 'factories' do context module_action_factory do let(module_action_factory) do FactoryGirl.build(module_action_factory) end it { should be_valid } end end context 'mass assignment security' do it { should allow_mass_assignment_of(:name) } end context 'search' do context 'attributes' do it_should_behave_like 'search_attribute', :name, :type => :string end end context 'validations' do it { should validate_presence_of(:module_instance) } it { should validate_presence_of(:name) } end end
Version data entries
31 entries across 31 versions & 1 rubygems