Sha256: c5aa6cb7e409988dc99fe13e2dcd5663ae92e243c9818110c95c3d4711972847

Contents?: true

Size: 483 Bytes

Versions: 12

Compression:

Stored size: 483 Bytes

Contents

require 'spec_helper'

describe Beatport do
  describe '.const_missing' do
    it "returns the constant within Catalog if it exists there" do
      silence_stream($stderr) do
        track = Beatport::Track.new
        track.should be_a(Beatport::Catalog::Track)
      end
    end
    
    it "raises an NameError if the constant doesn't exist with Catalog" do
      lambda { Beatport::Foo.new }.should raise_error(NameError, "uninitialized constant Beatport::Foo")
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
beatport-0.3.0 spec/beatport_spec.rb
beatport-0.2.3 spec/beatport_spec.rb
beatport-0.2.2 spec/beatport_spec.rb
beatport-0.2.1 spec/beatport_spec.rb
beatport-0.2.0 spec/beatport_spec.rb
beatport-0.1.10 spec/beatport_spec.rb
beatport-0.1.9 spec/beatport_spec.rb
beatport-0.1.8 spec/beatport_spec.rb
beatport-0.1.7 spec/beatport_spec.rb
beatport-0.1.6 spec/beatport_spec.rb
beatport-0.1.5 spec/beatport_spec.rb
beatport-0.1.3 spec/beatport_spec.rb