Sha256: 4953a9ff2ad7cd41a3a5cc16b2b5c7336185b1f8361b0191635be3bd037b6073
Contents?: true
Size: 726 Bytes
Versions: 28
Compression:
Stored size: 726 Bytes
Contents
require "spec_helper" require "expressir/express_exp/parser" require "expressir/express_exp/hyperlink_formatter" RSpec.describe Expressir::ExpressExp::HyperlinkFormatter do describe ".format" do it "formats hyperlink" do repo = Expressir::ExpressExp::Parser.from_file(input_file) result = Expressir::ExpressExp::HyperlinkFormatter.format(repo) expected_result = File.read(output_file) expect(result).to eq(expected_result) end end def input_file @input_file ||= Expressir.root_path.join("original", "examples", "syntax", "hyperlink.exp") end def output_file @output_file ||= Expressir.root_path.join("original", "examples", "syntax", "hyperlink_formatted.exp") end end
Version data entries
28 entries across 28 versions & 1 rubygems