Sha256: 35c40a329f9cf573276ea976bc234e7cc574cb6972b731cc796d498d8f93e359

Contents?: true

Size: 509 Bytes

Versions: 22

Compression:

Stored size: 509 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.classes.each { |k| k }
    end.should_not raise_error(NameError)
  end

  it 'should include data_miner definitions' do
    lambda do
      Earth.classes.each { |k| k.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

22 entries across 22 versions & 1 rubygems

Version Path
earth-0.0.40 spec/lib/earth_spec.rb
earth-0.0.39 spec/lib/earth_spec.rb
earth-0.0.38 spec/lib/earth_spec.rb
earth-0.0.37 spec/lib/earth_spec.rb
earth-0.0.36 spec/lib/earth_spec.rb
earth-0.0.35 spec/lib/earth_spec.rb
earth-0.0.34 spec/lib/earth_spec.rb
earth-0.0.33 spec/lib/earth_spec.rb
earth-0.0.32 spec/lib/earth_spec.rb
earth-0.0.31 spec/lib/earth_spec.rb
earth-0.0.30 spec/lib/earth_spec.rb
earth-0.0.29 spec/lib/earth_spec.rb
earth-0.0.28 spec/lib/earth_spec.rb
earth-0.0.27 spec/lib/earth_spec.rb
earth-0.0.26 spec/lib/earth_spec.rb
earth-0.0.24 spec/lib/earth_spec.rb
earth-0.0.23 spec/lib/earth_spec.rb
earth-0.0.22 spec/lib/earth_spec.rb
earth-0.0.21 spec/lib/earth_spec.rb
earth-0.0.20 spec/lib/earth_spec.rb