Sha256: 4f46c276fa3766deaa20cd9f892fb7ea92b1a16ce117cb4b398cfc85a0bedf28

Contents?: true

Size: 437 Bytes

Versions: 8

Compression:

Stored size: 437 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'
  end
end

RSpec.shared_examples "theme" do
  let (:src) { %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

8 entries across 8 versions & 1 rubygems

Version Path
rack-dev-mark-0.4.6 spec/support/theme_helper.rb
rack-dev-mark-0.4.5 spec/support/theme_helper.rb
rack-dev-mark-0.4.4 spec/support/theme_helper.rb
rack-dev-mark-0.4.3 spec/support/theme_helper.rb
rack-dev-mark-0.4.2 spec/support/theme_helper.rb
rack-dev-mark-0.4.1 spec/support/theme_helper.rb
rack-dev-mark-0.4.0 spec/support/theme_helper.rb
rack-dev-mark-0.3.0 spec/support/theme_helper.rb