Sha256: ecfef1fa100d3b8ef17e7593a9050dbcaf2ae742b9670e5cc1814421a5c13746

Contents?: true

Size: 839 Bytes

Versions: 2

Compression:

Stored size: 839 Bytes

Contents

require 'ronin/platform/ronin'

require 'platform/helpers/overlays'
require 'spec_helper'

describe Ronin do
  before(:all) do
    Platform.load_overlays(overlay_cache_path)
  end

  it "should provide transparent access to extensions via methods" do
    ext = Ronin::Hello

    ext.should_not be_nil
    ext.name.should == 'hello'
    ext.greatings.should == 'hello'
  end

  it "should raise NameError when accessing missing extensions" do
    lambda { Ronin::Nothing }.should raise_error(NameError)
  end

  it "should provide transparent access to extensions via methods" do
    ext = hello

    ext.should_not be_nil
    ext.name.should == 'hello'
    ext.greatings.should == 'hello'
  end

  it "should raise NoMethodError when accessing missing extensions" do
    lambda { self.nothing }.should raise_error(NoMethodError)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ronin-0.3.0 spec/platform/ronin_spec.rb
ronin-0.2.4 spec/platform/ronin_spec.rb