Sha256: be358f933df9a3fe0f7909a8ec2d40839d6e708ef1c37d32658e369e0c015707

Contents?: true

Size: 325 Bytes

Versions: 21

Compression:

Stored size: 325 Bytes

Contents

require "spec_helper"

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

  [
    "{}",
    "{ }",
    "{/* comment */}",
    "{ a: 1, b: 2, c: 3 }",
    '{ "first_name": "Dorian" }'
  ].each do |input|
    context input do
      let(:input) { input }
      it { subject }
    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
template-ruby-0.5.6 spec/code/parser/dictionnary_spec.rb
language-ruby-0.5.6 spec/code/parser/dictionnary_spec.rb
code-ruby-0.5.6 spec/code/parser/dictionnary_spec.rb
template-ruby-0.5.5 spec/code/parser/dictionnary_spec.rb
language-ruby-0.5.5 spec/code/parser/dictionnary_spec.rb
code-ruby-0.5.5 spec/code/parser/dictionnary_spec.rb
template-ruby-0.5.4 spec/code/parser/dictionnary_spec.rb
language-ruby-0.5.4 spec/code/parser/dictionnary_spec.rb
code-ruby-0.5.4 spec/code/parser/dictionnary_spec.rb
template-ruby-0.5.3 spec/code/parser/dictionnary_spec.rb
language-ruby-0.5.3 spec/code/parser/dictionnary_spec.rb
code-ruby-0.5.3 spec/code/parser/dictionnary_spec.rb
template-ruby-0.5.2 spec/code/parser/dictionnary_spec.rb
language-ruby-0.5.2 spec/code/parser/dictionnary_spec.rb
code-ruby-0.5.2 spec/code/parser/dictionnary_spec.rb
language-ruby-0.5.1 spec/code/parser/dictionnary_spec.rb
template-ruby-0.5.1 spec/code/parser/dictionnary_spec.rb
code-ruby-0.5.1 spec/code/parser/dictionnary_spec.rb
template-ruby-0.5.0 spec/code/parser/dictionnary_spec.rb
language-ruby-0.5.0 spec/code/parser/dictionnary_spec.rb