Sha256: 3d73da5053c510dc4b6f2ca8b0408abbb3afc519310962be621e72bc82fd17c2
Contents?: true
Size: 519 Bytes
Versions: 12
Compression:
Stored size: 519 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 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, 'env', revision: 'rev', timestamp: 'time')).to eq(out) end end
Version data entries
12 entries across 12 versions & 1 rubygems