Sha256: c9de9f4a29b202c1dca3ce503676e0fc8f1255f2642796d5912582fb5c95b1f1

Contents?: true

Size: 554 Bytes

Versions: 6

Compression:

Stored size: 554 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper.rb'

class TestImport < Test::Unit::TestCase
  def setup
    get_db_conn(GTRON_ENV)
    @rake = Rake::Application.new
    Rake.application = @rake
    load File.dirname(__FILE__) + '/../../tasks/import.rake'
  end

  should "import data" do
    # Testing rake is a bit different
    # http://blog.nicksieger.com/articles/2007/06/11/test-your-rake-tasks
    # Example:
    #   @rake["task_name"].invoke
    @rake["import"].invoke
    assert true
  end

  def teardown
    Rake.application = nil
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
michaelbarton-gigantron-0.1.4 app_generators/gigantron/templates/test/tasks/test_import.rb
michaelbarton-gigantron-0.1.7 templates/project/test/tasks/test_import.rb
gigantron-0.1.0 app_generators/gigantron/templates/test/tasks/test_import.rb
gigantron-0.0.1 app_generators/gigantron/templates/test/tasks/test_import.rb
gigantron-0.1.1 app_generators/gigantron/templates/test/tasks/test_import.rb
gigantron-0.1.3 app_generators/gigantron/templates/test/tasks/test_import.rb