Sha256: bea9c3a3db5934c7894bd5467a19aa8418775e5ce80bacc7739e21d9061004cd

Contents?: true

Size: 330 Bytes

Versions: 6

Compression:

Stored size: 330 Bytes

Contents

require "spec_helper"

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

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

      it { expect { subject }.to_not raise_error }
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
template-ruby-parser-0.1.2 spec/code/parser/nothing_spec.rb
code-ruby-parser-0.1.2 spec/code/parser/nothing_spec.rb
template-ruby-parser-0.1.1 spec/code/parser/nothing_spec.rb
code-ruby-parser-0.1.1 spec/code/parser/nothing_spec.rb
template-ruby-parser-0.1.0 spec/code/parser/nothing_spec.rb
code-ruby-parser-0.1.0 spec/code/parser/nothing_spec.rb