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