Sha256: 1f9290477a38bcb872cbfdee3ec7cbfba96bf344b55f0c403905aa1c41ccb722
Contents?: true
Size: 658 Bytes
Versions: 8
Compression:
Stored size: 658 Bytes
Contents
require 'spec_helper' describe Gris::SeedLoader do context '#load_seed' do context 'without an existing seed file' do let(:loader) { Gris::SeedLoader.new('blah') } it 'raises a RuntimeError' do expect do loader.load_seed end.to raise_error(RuntimeError, "Seed file 'blah' does not exist.") end end context 'with an existing seed file' do include_context 'with a generated app' let(:loader) { Gris::SeedLoader.new('my_test_app/db/seeds.rb') } it 'does not raise an error' do expect do loader.load_seed end.to_not raise_error end end end end
Version data entries
8 entries across 8 versions & 1 rubygems