Sha256: b9ff7bef69f1d2c81053e5e49019e4ad2cf16ad20aa7d71917f5e546a5301d36

Contents?: true

Size: 494 Bytes

Versions: 21

Compression:

Stored size: 494 Bytes

Contents

require "spec_helper"

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

  [
    ["", []],
    ["  ", []],
    ["\n", []],
    ["nothing", [{ nothing: "nothing" }]],
    ["  nothing  ", [{ nothing: "nothing" }]],
    [
      "nothing null nil",
      [{ nothing: "nothing" }, { nothing: "null" }, { nothing: "nil" }]
    ]
  ].each do |input, output|
    context input.inspect do
      let(:input) { input }

      it { expect(subject).to eq(output) }
    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

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