Sha256: d2d60708df97e0b306eec2f73f82631d86c54ee7f45267744a139892ea285a82

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

require 'active_record'
require 'spec_helper'
require 'service_template/active_record_extensions/seeder'

describe ServiceTemplate::ActiveRecordSeeder do

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

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
service_template-0.5.2 spec/active_record_extensions/seeder_spec.rb
service_template-0.5.1 spec/active_record_extensions/seeder_spec.rb
service_template-0.5.0 spec/active_record_extensions/seeder_spec.rb