Sha256: d39bf7f55414efe65cfdff666bc5e08e099dc9552858db303cfed84a94f5b0f5

Contents?: true

Size: 576 Bytes

Versions: 8

Compression:

Stored size: 576 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.name.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

8 entries across 8 versions & 1 rubygems

Version Path
ronin-gen-1.0.1 spec/gen/gen_spec.rb
ronin-gen-1.0.1.rc1 spec/gen/gen_spec.rb
ronin-gen-1.0.0 spec/gen/gen_spec.rb
ronin-gen-1.0.0.rc2 spec/gen/gen_spec.rb
ronin-gen-1.0.0.rc1 spec/gen/gen_spec.rb
ronin-gen-1.0.0.pre3 spec/gen/gen_spec.rb
ronin-gen-1.0.0.pre2 spec/gen/gen_spec.rb
ronin-gen-1.0.0.pre1 spec/gen/gen_spec.rb