Sha256: 26066c5b1be64e12af4f0d6378b241398f2a76d8fe3812572d7f014a4c74407d
Contents?: true
Size: 610 Bytes
Versions: 12
Compression:
Stored size: 610 Bytes
Contents
require "spec_helper" RSpec.describe ::Code::Parser do subject { ::Code::Parser.parse(input) } [ "a.b", "a.b.c", "a(1).b.c(2)", "user.first_name", "User.all", "User::Email.first", "User.each do |user| user.update(created_at: Time.now) end" ].each do |input| context input do let!(:input) { input } it { subject } end end [ "a /* cool */ . b", "a . /* cool */ b", "a . # cool\n /* cool */ b" ].each do |input| context input do let!(:input) { input } it { expect(subject.to_json).to include("cool") } end end end
Version data entries
12 entries across 12 versions & 2 rubygems