Sha256: 3c98b4e728d7d977299f97377eb70f424aec82654c7aa8f89b39c991a7da0bbf

Contents?: true

Size: 569 Bytes

Versions: 6

Compression:

Stored size: 569 Bytes

Contents

require 'spec_helper'
require 'ronin/gen/gen'
require 'ronin/gen/version'

describe Gen do
  it "should have a version" do
    subject.const_defined?('VERSION').should == true
  end

  it "should load generators from 'ronin/gen/generators'" do
    generator = subject.generator('library')

    generator.should_not be_nil
    generator.should == Ronin::Gen::Generators::Library
  end

  it "should raise an UnknownGenerator exception on missing generators" do
    lambda {
      subject.generator('lolbadfail')
    }.should raise_error(Gen::UnknownGenerator)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ronin-gen-1.2.0.rc2 spec/gen/gen_spec.rb
ronin-gen-1.2.0.rc1 spec/gen/gen_spec.rb
ronin-gen-1.1.1 spec/gen/gen_spec.rb
ronin-gen-1.1.0 spec/gen/gen_spec.rb
ronin-gen-1.1.0.rc2 spec/gen/gen_spec.rb
ronin-gen-1.1.0.rc1 spec/gen/gen_spec.rb