Sha256: d878439595194a2579b8b60bacccc632353f548f22555ac51e06bbad6c104b1f

Contents?: true

Size: 405 Bytes

Versions: 12

Compression:

Stored size: 405 Bytes

Contents

require "spec_helper"

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

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

      it "succeeds" do
        expect(subject).to eq(expected)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
template-ruby-0.4.0 spec/code/parser/nothing_spec.rb
code-ruby-0.4.0 spec/code/parser/nothing_spec.rb
template-ruby-0.3.1 spec/code/parser/nothing_spec.rb
code-ruby-0.3.1 spec/code/parser/nothing_spec.rb
template-ruby-0.3.0 spec/code/parser/nothing_spec.rb
code-ruby-0.3.0 spec/code/parser/nothing_spec.rb
code-ruby-0.2.4 spec/code/parser/nothing_spec.rb
template-ruby-0.2.4 spec/code/parser/nothing_spec.rb
template-ruby-0.2.3 spec/code/parser/nothing_spec.rb
template-ruby-0.2.2 spec/code/parser/nothing_spec.rb
template-ruby-0.2.1 spec/code/parser/nothing_spec.rb
template-ruby-0.2.0 spec/code/parser/nothing_spec.rb