Sha256: f35791d0c148834de99136ff87d7b919b612239fc030e2e16d0fcb8dbe6e8586

Contents?: true

Size: 378 Bytes

Versions: 23

Compression:

Stored size: 378 Bytes

Contents

require 'spec_helper'

describe UsdaNutrientDatabase::Import::Foods do
  let(:importer) { described_class.new('spec/support/sr25') }

  describe '#import' do
    before { importer.import }

    it { expect(UsdaNutrientDatabase::Food.count).to eql(4) }

    it do
      expect(UsdaNutrientDatabase::Food.where(food_group_code: '0100').count).
        to eql(3)
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
usda-nutrient-database-2.1.2 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-1.5.0 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-1.4.1 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-2.1.1 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-2.1.0 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-2.0.0 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-1.4.0 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-1.3.0 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-1.2.0 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-1.1.0 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-1.0.1 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-1.0.0 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-0.8.1 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-0.8.0 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-0.7.0 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-0.6.0 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-0.5.0 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-0.4.0 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-0.3.0 spec/lib/usda_nutrient_database/import/foods_spec.rb
usda-nutrient-database-0.2.0 spec/lib/usda_nutrient_database/import/foods_spec.rb