Sha256: b969b50e9c98ce668a364c6ccd850f4430d0b2c034977a4940e792bbcb9291ad

Contents?: true

Size: 331 Bytes

Versions: 13

Compression:

Stored size: 331 Bytes

Contents

require "spec_helper"

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

  %w[user dorian User RSpec describe?].each do |(input, expected)|
    context input.inspect do
      let(:input) { input }

      it "succeeds" do
        expect(subject).to eq({ name: input })
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

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