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

Version Path
db-populator-0.1.13 spec/lib/tasks/populate_spec.rb
db-populator-0.1.12 spec/lib/tasks/populate_spec.rb
db-populator-0.1.11 spec/lib/tasks/populate_spec.rb
db-populator-0.1.10 spec/lib/tasks/populate_spec.rb
db-populator-0.1.9 spec/lib/tasks/populate_spec.rb
db-populator-0.1.8 spec/lib/tasks/populate_spec.rb
db-populator-0.1.6 spec/lib/tasks/populate_spec.rb
db-populator-0.1.5 spec/lib/tasks/populate_spec.rb
db-populator-0.1.4 spec/lib/tasks/populate_spec.rb