Sha256: 1c2bc0e722564d4c2215adcc89bf91cd9ae30c61f57b0593d198503a5f58754d
Contents?: true
Size: 363 Bytes
Versions: 9
Compression:
Stored size: 363 Bytes
Contents
require 'spec/spec_helper' require 'populator/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
9 entries across 9 versions & 1 rubygems