Sha256: 95877d09baa6a3b436f3e0ce548fd3c6bdb9aec73227799f2c067797d466cc7f
Contents?: true
Size: 600 Bytes
Versions: 6
Compression:
Stored size: 600 Bytes
Contents
require "spec_helper" RSpec.describe ::Code::Parser do subject { ::Code::Parser.parse(input) } [ "while false", "while false a end", "while false a", "until true", "until true a", "until true a end" ].each do |input| context input do let!(:input) { input } it { expect { subject }.to_not raise_error } end end [ "while /* cool */ a", "while a /* cool */ b", "until a b /* cool */ end" ].each do |input| context input do let!(:input) { input } it { expect(subject.to_json).to include("cool") } end end end
Version data entries
6 entries across 6 versions & 2 rubygems