Sha256: 0babc24cfdcd15eb05213e4a1d78322a052798d70a63dbcaf492a61a028f8827

Contents?: true

Size: 534 Bytes

Versions: 4

Compression:

Stored size: 534 Bytes

Contents

RSpec.shared_context "theme context" do
  def read_stylesheet(path)
    ::File.open(::File.join(::File.dirname(__FILE__), '../../vendor/assets/stylesheets', path)).read
  end

  before do
    subject.setup 'env', 'rev', 'time'
  end
end

RSpec.shared_examples "theme" do
  let (:src) { %Q~<html><head>head<title>title</title></head><body>body</body></html>~ }
  let (:out) { %Q~<html><head>head<title>title</title></head><body>body</body></html>~ }
  it "inserts env mark" do
    expect(subject.insert_into(src)).to eq(out)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rack-dev-mark-0.6.4 spec/support/theme_helper.rb
rack-dev-mark-0.6.3 spec/support/theme_helper.rb
rack-dev-mark-0.6.2 spec/support/theme_helper.rb
rack-dev-mark-0.6.0 spec/support/theme_helper.rb