Sha256: be00fb6537e8b479945f44386418e86c1ed0c62686da96f948dd9a60f4f1a13e

Contents?: true

Size: 445 Bytes

Versions: 6

Compression:

Stored size: 445 Bytes

Contents

require "spec_helper"

RSpec.describe ::Code::Parser do
  subject { ::Code::Parser.parse(input) }

  ["not a", "not not a"].each do |input|
    context input do
      let!(:input) { input }

      it { expect { subject }.to_not raise_error }
    end
  end

  ["not /* cool */ a", "not not /* cool */ a"].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

Version Path
template-ruby-parser-0.1.2 spec/code/parser/not_keyword_spec.rb
code-ruby-parser-0.1.2 spec/code/parser/not_keyword_spec.rb
template-ruby-parser-0.1.1 spec/code/parser/not_keyword_spec.rb
code-ruby-parser-0.1.1 spec/code/parser/not_keyword_spec.rb
template-ruby-parser-0.1.0 spec/code/parser/not_keyword_spec.rb
code-ruby-parser-0.1.0 spec/code/parser/not_keyword_spec.rb