Sha256: b17e1e8a46a739cc17bcf63784abfc14ff6e5dcf403d12dfbc450e7ecf3a01eb
Contents?: true
Size: 358 Bytes
Versions: 18
Compression:
Stored size: 358 Bytes
Contents
require 'spec_helper' require 'smilodon/fakes' require 'rake' load 'tasks/populate.rake' describe 'db:populate' do it 'should run the fake populator' do Rake::Task.define_task :environment YAML.stub(:load_file).and_return({ :populators => [ 'FakePopulator' ]}) FakePopulator.should_receive :run Rake::Task['db:populate'].invoke end end
Version data entries
18 entries across 18 versions & 1 rubygems