Sha256: ce25437b5d0ff6a98d44fd2025d1186a7c202914c394db0042853a4368868373

Contents?: true

Size: 547 Bytes

Versions: 20

Compression:

Stored size: 547 Bytes

Contents

require 'spec_helper'

describe Earth do
  before :all do
    Earth.init :all, :apply_schemas => true
  end

  it 'should require all Earth models' do
    lambda do
      Earth.resource_names.each { |k| k.constantize }
    end.should_not raise_error(NameError)
  end

  it 'should include data_miner definitions' do
    lambda do
      Earth.resource_names.each { |k| k.constantize.should_receive(:data_miner) }
    end
    require 'earth/data_miner'
  end

  it 'should create a fallbacks table' do
    Fallback.should be_table_exists
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
earth-0.2.11 spec/earth_spec.rb
earth-0.2.9 spec/earth_spec.rb
earth-0.2.8 spec/earth_spec.rb
earth-0.2.7 spec/earth_spec.rb
earth-0.2.6 spec/lib/earth_spec.rb
earth-0.2.5 spec/lib/earth_spec.rb
earth-0.2.4 spec/lib/earth_spec.rb
earth-ruby19-0.2.3 spec/lib/earth_spec.rb
earth-0.2.3 spec/lib/earth_spec.rb
earth-0.2.2 spec/lib/earth_spec.rb
earth-0.2.1 spec/lib/earth_spec.rb
earth-0.2.0 spec/lib/earth_spec.rb
earth-0.1.4 spec/lib/earth_spec.rb
earth-0.1.3 spec/lib/earth_spec.rb
earth-0.1.2 spec/lib/earth_spec.rb
earth-0.1.1 spec/lib/earth_spec.rb
earth-0.1.0 spec/lib/earth_spec.rb
earth-0.0.43 spec/lib/earth_spec.rb
earth-0.0.42 spec/lib/earth_spec.rb
earth-0.0.41 spec/lib/earth_spec.rb