Sha256: fe990b777c65843c12df60618b79b726094026fd047330b9f5dbfec3569779fd

Contents?: true

Size: 465 Bytes

Versions: 4

Compression:

Stored size: 465 Bytes

Contents

require 'spec_helper'

require 'msplat'

class String
  def const
    self.split('::').inject(Kernel) {|scope, const_name| scope.const_get(const_name)}
  end
end

describe "msplat" do
  it "requires major classes/modules" do
    %w(
      MS::Mass
      MS::Mass::AA
    ).each do |str|
      expect { str.const }.to be_true
    end
    # for sanity's sake
    %w(MS::DoesntExit).each do |str|
      expect { str.const }.to raise_error(NameError)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mspire-0.6.7 spec/msplat_spec.rb
mspire-0.6.6 spec/msplat_spec.rb
mspire-0.6.2 spec/msplat_spec.rb
mspire-0.6.1 spec/msplat_spec.rb