Sha256: dc9b6549ba8b7ea8f7bde5a05419fc7fa50d9ba68e114396fc51aab225ed4cd2
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
require 'spec_helper' require 'smilodon/fakes' require 'rake' require 'yaml' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
smilodon-0.3.11 | spec/lib/tasks/populate_spec.rb |
smilodon-0.3.10 | spec/lib/tasks/populate_spec.rb |
smilodon-0.3.9 | spec/lib/tasks/populate_spec.rb |