Sha256: 3d100cc43dc910558ca74a833067af8f3c520b66050071b83f818913708cd3f8

Contents?: true

Size: 681 Bytes

Versions: 2

Compression:

Stored size: 681 Bytes

Contents

require 'spec_helper'

describe Rack::DevMark::Theme::GithubForkRibbon do
  it_behaves_like "theme" do
    let :out do
      s = <<-EOS
<html><head>head<title>title</title></head><body><style>#{read_stylesheet "github-fork-ribbon-css/gh-fork-ribbon.css"}</style>
<!--[if lt IE 9]>
<style>#{read_stylesheet "github-fork-ribbon-css/gh-fork-ribbon.ie.css"}</style>
<![endif]-->
<div class="github-fork-ribbon-wrapper left" onClick="this.style.display='none'" title="rev"><div class="github-fork-ribbon"><span class="github-fork-ribbon-text">env</span></div></div>body</body></html>
      EOS
      s.strip
    end

    subject { Rack::DevMark::Theme::GithubForkRibbon.new }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rack-dev-mark-0.1.2 spec/rack/dev-mark/theme/github_fork_ribbon_spec.rb
rack-dev-mark-0.1.0 spec/rack/dev-mark/theme/github_fork_ribbon_spec.rb