Sha256: 1a13d40f8cd34acb6dd7eee9aee0e426dd60bff9878920b6f3983ece5c02987f
Contents?: true
Size: 1.45 KB
Versions: 10
Compression:
Stored size: 1.45 KB
Contents
require 'spec_helper' class Subject < Arachni::Component::Base def self.info { name: 'My full name', description: 'My description', author: 'My author', version: 'My version' } end end describe Arachni::Component::Base do subject { Subject } let(:info) { Subject.info } it "includes #{Arachni::Component::Output}" do subject.should include Arachni::Component::Output end it "includes #{Arachni::Component::Utilities}" do subject.should include Arachni::Component::Utilities end describe '.shortname=' do it 'sets the .shortname' do subject.shortname = :blah subject.shortname.should == :blah end it 'sets the #shortname' do subject.shortname = :blah subject.new.shortname.should == :blah end end describe '.fullname' do it 'returns the name' do subject.fullname.should == info[:name] end end describe '.description' do it 'returns the description' do subject.description.should == info[:description] end end describe '.author' do it 'returns the author' do subject.author.should == info[:author] end end describe '.version' do it 'returns the version' do subject.version.should == info[:version] end end end
Version data entries
10 entries across 10 versions & 1 rubygems