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

Version Path
roadie-rails-1.2.0 spec/lib/roadie/rails/document_builder_spec.rb
roadie-rails-1.1.1 spec/lib/roadie/rails/document_builder_spec.rb
roadie-rails-1.1.0 spec/lib/roadie/rails/document_builder_spec.rb
roadie-rails-1.1.0.rc2 spec/lib/roadie/rails/document_builder_spec.rb
roadie-rails-1.1.0.rc1 spec/lib/roadie/rails/document_builder_spec.rb
roadie-rails-1.0.6 spec/lib/roadie/rails/document_builder_spec.rb
roadie-rails-1.0.5 spec/lib/roadie/rails/document_builder_spec.rb
roadie-rails-1.0.4 spec/lib/roadie/rails/document_builder_spec.rb
roadie-rails-1.0.3 spec/lib/roadie/rails/document_builder_spec.rb
roadie-rails-1.0.2 spec/lib/roadie/rails/document_builder_spec.rb
roadie-rails-1.0.1 spec/lib/roadie/rails/document_builder_spec.rb
roadie-rails-1.0.0 spec/lib/roadie/rails/document_builder_spec.rb
roadie-rails-1.0.0.pre1 spec/lib/roadie/rails/document_builder_spec.rb