spec/lib/wp2middleman_spec.rb in wp2middleman-0.0.1 vs spec/lib/wp2middleman_spec.rb in wp2middleman-0.0.2
- old
+ new
@@ -1,19 +1,19 @@
require 'spec_helper'
describe WP2Middleman do
it "exists as a module" do
- WP2Middleman.class.should eq Module
+ 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
- WP2Middleman::Migrator.should_receive(:new).with('foo', body_to_markdown: false).and_return(@migrator_double)
- @migrator_double.should_receive(:migrate)
+ 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