RSpec.shared_examples "theme" do def read_stylesheet(path) ::File.open(::File.join(::File.dirname(__FILE__), '../../vendor/assets/stylesheets', path)).read end let (:src) { %Q~headtitlebody~ } it "insert env mark" do expect(subject.insert_into(src, 'env')).to eq(out) end end