Sha256: b2e90cdb262bd4cbc8e28cdbc2eec6b80dd01b9d51c210b8b36276e3a411a127

Contents?: true

Size: 508 Bytes

Versions: 12

Compression:

Stored size: 508 Bytes

Contents

require "spec_helper"

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

  ["a > b", "a > b > c", "a < b", "a >= b", "a <= b"].each do |input|
    context input do
      let!(:input) { input }

      it { subject }
    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

12 entries across 12 versions & 2 rubygems

Version Path
template-ruby-parser-0.1.8 spec/code/parser/greater_than_spec.rb
code-ruby-parser-0.1.8 spec/code/parser/greater_than_spec.rb
template-ruby-parser-0.1.7 spec/code/parser/greater_than_spec.rb
code-ruby-parser-0.1.7 spec/code/parser/greater_than_spec.rb
template-ruby-parser-0.1.6 spec/code/parser/greater_than_spec.rb
code-ruby-parser-0.1.6 spec/code/parser/greater_than_spec.rb
template-ruby-parser-0.1.5 spec/code/parser/greater_than_spec.rb
code-ruby-parser-0.1.5 spec/code/parser/greater_than_spec.rb
template-ruby-parser-0.1.4 spec/code/parser/greater_than_spec.rb
code-ruby-parser-0.1.4 spec/code/parser/greater_than_spec.rb
template-ruby-parser-0.1.3 spec/code/parser/greater_than_spec.rb
code-ruby-parser-0.1.3 spec/code/parser/greater_than_spec.rb