Sha256: 9cba1603223891aa27dba79a710c93dcfeeca4dbdab5b7d208362e9c43ff1bdb

Contents?: true

Size: 380 Bytes

Versions: 4

Compression:

Stored size: 380 Bytes

Contents

require 'spec_helper'

describe Rpub::Epub::Cover do
  let(:book)    { double('book', :cover_image => 'cover.jpg', :title => 'title') }
  let(:subject) { described_class.new(book).render }

  it { should have_xpath('/xmlns:html/xmlns:head/xmlns:title[text()="Cover"]') }
  it { should have_xpath('/xmlns:html/xmlns:body/xmlns:div/xmlns:img[@src="cover.jpg"][@alt="title"]') }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rpub-0.4.0 spec/rpub/epub/cover_spec.rb
rpub-0.3.0 spec/rpub/epub/cover_spec.rb
rpub-0.2.1 spec/rpub/epub/cover_spec.rb
rpub-0.2.0 spec/rpub/epub/cover_spec.rb