Sha256: 7301d8cbce3aa13ac26a5012fae5166d0d9b11359346ae50e8805999e1f6a98a
Contents?: true
Size: 518 Bytes
Versions: 6
Compression:
Stored size: 518 Bytes
Contents
require "spec_helper" RSpec.describe ::Code::Parser do subject { ::Code::Parser.parse(input) } ["a || b", "a || b || c"].each do |input| context input do let!(:input) { input } it { expect { subject }.to_not raise_error } end end [ "a /* cool */ || b", "a || /* cool */ b", "a || b || c /* cool */", "a || b || /* cool */ c" ].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