require 'spec_helper'
describe Rack::DevMark::Theme::GithubForkRibbon do
include_context "theme context"
it_behaves_like "theme" do
let :out do
s = <<-EOS
headtitle
body
EOS
s.strip
end
subject { Rack::DevMark::Theme::GithubForkRibbon.new }
end
context "position option" do
it_behaves_like "theme" do
let :out do
s = <<-EOS
headtitle
body
EOS
s.strip
end
subject { Rack::DevMark::Theme::GithubForkRibbon.new(position: 'right') }
end
end
context "color option" do
it_behaves_like "theme" do
let :out do
s = <<-EOS
headtitle
body
EOS
s.strip
end
subject { Rack::DevMark::Theme::GithubForkRibbon.new(color: 'orange') }
end
end
context "fixed option" do
it_behaves_like "theme" do
let :out do
s = <<-EOS
headtitle
body
EOS
s.strip
end
subject { Rack::DevMark::Theme::GithubForkRibbon.new(fixed: true) }
end
end
end