Sha256: 508cc95bc804e2c97e33dd31e9c5770a3a36b97867b3b3d58deae32b5a4b9540

Contents?: true

Size: 374 Bytes

Versions: 8

Compression:

Stored size: 374 Bytes

Contents

require 'spec_helper'
require 'nokogiri'

describe Fdoc::ServicePresenter do
  subject {
    Fdoc::ServicePresenter.new(Fdoc::Service.new('spec/fixtures'))
  }

  context "#to_html" do
    it "should generate valid HTML" do
      html = subject.to_html

      expect {
        Nokogiri::HTML(html) { |config| config.strict }
      }.to_not raise_exception
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fdoc-0.3.0 spec/fdoc/presenters/service_presenter_spec.rb
fdoc-0.2.7 spec/fdoc/presenters/service_presenter_spec.rb
fdoc-0.2.6 spec/fdoc/presenters/service_presenter_spec.rb
fdoc-0.2.5 spec/fdoc/presenters/service_presenter_spec.rb
fdoc-0.2.4 spec/fdoc/presenters/service_presenter_spec.rb
fdoc-0.2.3 spec/fdoc/presenters/service_presenter_spec.rb
fdoc-0.2.2 spec/fdoc/presenters/service_presenter_spec.rb
fdoc-0.2.1 spec/fdoc/presenters/service_presenter_spec.rb