Sha256: 72b8d1a0096ca268eba980eb179859dd18794a3d62204c7d604ed9395def76dc

Contents?: true

Size: 557 Bytes

Versions: 1

Compression:

Stored size: 557 Bytes

Contents

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

describe Ronin do
  it "should have a version" do
    version = subject.const_get('VERSION')

    expect(version).not_to be_nil
    expect(version).not_to be_empty
  end

  it "should include AutoLoad" do
    expect(subject).to include(AutoLoad)
  end

  it "should add a const_missing method when included" do
    base_class = Class.new
    base_class.send :include, subject

    subject.const_set('SOME_CONSTANT',1)

    expect(base_class.const_get('SOME_CONSTANT')).to eq(1)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ronin-1.5.1 spec/ronin_spec.rb