Sha256: a18abb21a6049c3d6c958a9604f049ab7a75f522268025aaf159e78fc82683fd
Contents?: true
Size: 791 Bytes
Versions: 6
Compression:
Stored size: 791 Bytes
Contents
require 'test_helper' module Workarea module Blog class WordpressImportIntegrationTest < Workarea::IntegrationTest def test_creates_all_objects return unless running_from_source? Rails.application.load_tasks Rake::Task['workarea:blog:import_wordpress'].invoke(wordpress_xml_path) entries = Workarea::Content::BlogEntry.all assert(entries.present?) assert_equal(4, entries.count) assert_equal(Workarea.config.wordpress_import[:blog_name], entries.first.blog.name) pages = Workarea::Content::Page.all assert(pages.present?) assert_equal(2, pages.count) assets = Workarea::Content::Asset.all assert(assets.present?) assert_equal(2, assets.count) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems