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