Files
openfoodnetwork/spec/lib/tasks/sample_data_rake_spec.rb
Maikel Linke dcb6f4676d Remove all unnecessary spec_helper require statements
The `.rspec` file is doing this for us.
2026-01-21 12:35:34 +11:00

18 lines
409 B
Ruby

# frozen_string_literal: true
RSpec.describe 'sample_data.rake' do
before do
# Create seed data required by the sample data.
create(:user)
DefaultShippingCategory.find_or_create
end
it "creates some sample data to play with" do
invoke_task "ofn:sample_data"
expect(EnterpriseGroup.count).to eq 1
expect(Customer.count).to eq 2
expect(Spree::Order.count).to eq 5
end
end