Sha256: 4f819e6705fcda3baafe9e3035fd363f6e683450db3161105e52a2322881cd61
Contents?: true
Size: 511 Bytes
Versions: 13
Compression:
Stored size: 511 Bytes
Contents
# encoding: UTF-8 require 'spec_helper' module Roadie module Rails describe DocumentBuilder do it "builds documents with the given HTML" do document = DocumentBuilder.build("foo", Options.new) expect(document.html).to eq("foo") end it "applies the options to the document" do options = Options.new expect(options).to receive(:apply_to).with(instance_of Document).and_call_original DocumentBuilder.build("", options) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems