Sha256: e027353744e1dce7fde191a8be4fb733517867813eb85defad6b790ad7f8bf3f
Contents?: true
Size: 558 Bytes
Versions: 2
Compression:
Stored size: 558 Bytes
Contents
require 'spec_helper' describe WP2Middleman do it "exists as a module" do expect(WP2Middleman.class).to eq Module end describe ".migrate" do before :each do @migrator_double = double(WP2Middleman::Migrator) end it "migrates the posts in the wordpress XML export file it's passed" do expect(WP2Middleman::Migrator).to receive(:new).with('foo', body_to_markdown: false, include_fields: []).and_return(@migrator_double) expect(@migrator_double).to receive(:migrate) WP2Middleman.migrate 'foo' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wp2middleman-0.0.3 | spec/lib/wp2middleman_spec.rb |
wp2middleman-0.0.2 | spec/lib/wp2middleman_spec.rb |