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

Version Path
smilodon-0.3.8 spec/lib/tasks/populate_spec.rb
smilodon-0.3.7 spec/lib/tasks/populate_spec.rb
smilodon-0.3.6 spec/lib/tasks/populate_spec.rb
smilodon-0.0.2 spec/lib/tasks/populate_spec.rb
smilodon-0.0.1 spec/lib/tasks/populate_spec.rb
smilodon-0.3.5 spec/lib/tasks/populate_spec.rb
smilodon-0.3.4 spec/lib/tasks/populate_spec.rb
smilodon-0.3.3 spec/lib/tasks/populate_spec.rb
smilodon-0.3.2 spec/lib/tasks/populate_spec.rb
smilodon-0.3.1 spec/lib/tasks/populate_spec.rb
smilodon-0.3.0 spec/lib/tasks/populate_spec.rb
smilodon-0.2.8 spec/lib/tasks/populate_spec.rb
smilodon-0.2.7 spec/lib/tasks/populate_spec.rb
smilodon-0.2.6 spec/lib/tasks/populate_spec.rb
smilodon-0.2.5 spec/lib/tasks/populate_spec.rb
smilodon-0.2.4 spec/lib/tasks/populate_spec.rb
smilodon-0.2.3 spec/lib/tasks/populate_spec.rb
smilodon-0.2.2 spec/lib/tasks/populate_spec.rb