Sha256: 9c4b330e1a74c2d0ccdca12b6bd058f0927254fc9dc8b4c9109dcf99a0d4d9f0

Contents?: true

Size: 421 Bytes

Versions: 12

Compression:

Stored size: 421 Bytes

Contents

require "spec_helper"

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

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

      it { subject }
    end
  end

  ["1 /* cool */ ** 2", "1 ** /* cool */ 2"].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/power_spec.rb
code-ruby-parser-0.1.8 spec/code/parser/power_spec.rb
template-ruby-parser-0.1.7 spec/code/parser/power_spec.rb
code-ruby-parser-0.1.7 spec/code/parser/power_spec.rb
template-ruby-parser-0.1.6 spec/code/parser/power_spec.rb
code-ruby-parser-0.1.6 spec/code/parser/power_spec.rb
template-ruby-parser-0.1.5 spec/code/parser/power_spec.rb
code-ruby-parser-0.1.5 spec/code/parser/power_spec.rb
template-ruby-parser-0.1.4 spec/code/parser/power_spec.rb
code-ruby-parser-0.1.4 spec/code/parser/power_spec.rb
template-ruby-parser-0.1.3 spec/code/parser/power_spec.rb
code-ruby-parser-0.1.3 spec/code/parser/power_spec.rb