Sha256: c3c2fd4f6b3fe3757c0bb2fcaac9dee9b2f07ae481b0efc30521ab733c403fcc

Contents?: true

Size: 642 Bytes

Versions: 2

Compression:

Stored size: 642 Bytes

Contents

require 'spec_helper'
require 'yaml'
require './lib/wordpress/export'

module Contentful
  module Exporter
    module Wordpress
      describe Export do
        include_context 'shared_configuration'

        before do
          @exporter = Export.new(@settings)
        end

        it 'initialize' do
          expect(@exporter.settings).to be_kind_of Contentful::Configuration
          expect(@exporter.wordpress_xml).to be_kind_of Nokogiri::XML::Document
        end

        it 'export_blog' do
          @exporter.export_blog
          expect(Dir.glob('spec/fixtures/blog/**/*').count).to eq 23
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wordpress-exporter-0.0.2 spec/lib/wordpress/export_spec.rb
wordpress-exporter-0.0.1 spec/lib/wordpress/export_spec.rb