Sha256: bd28d95929812eb280ccd830d0df47662e6e2aa26325113664c44c11d0a84ba0

Contents?: true

Size: 308 Bytes

Versions: 4

Compression:

Stored size: 308 Bytes

Contents

require 'active_record'
require 'spec_helper'
require 'napa/active_record_extensions/seeder'

describe Napa::ActiveRecordSeeder do

  context 'when a valid file is not provided' do
    it 'raises an exception' do
    	expect{Napa::ActiveRecordSeeder.load_file 'not-a-file'}.to raise_error
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
napa-0.5.0 spec/active_record_extensions/seeder_spec.rb
napa-0.4.3 spec/active_record_extensions/seeder_spec.rb
napa-0.4.1 spec/active_record_extensions/seeder_spec.rb
napa-0.4.0 spec/active_record_extensions/seeder_spec.rb