Sha256: b70ce1f4d63a03c724551ab4ad9e11282d71bc3c21f337a199ca7b7b55bc6275

Contents?: true

Size: 370 Bytes

Versions: 21

Compression:

Stored size: 370 Bytes

Contents

require "spec_helper"

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

  [
    "''",
    '""',
    "'Hello Dorian'",
    '"Hello Dorian"',
    "'Hello \\{name}'",
    '"Hello \\{name}"',
    "'Hello {name}'",
    '"Hello {name}"'
  ].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/string_spec.rb
language-ruby-0.5.6 spec/code/parser/string_spec.rb
code-ruby-0.5.6 spec/code/parser/string_spec.rb
template-ruby-0.5.5 spec/code/parser/string_spec.rb
language-ruby-0.5.5 spec/code/parser/string_spec.rb
code-ruby-0.5.5 spec/code/parser/string_spec.rb
template-ruby-0.5.4 spec/code/parser/string_spec.rb
language-ruby-0.5.4 spec/code/parser/string_spec.rb
code-ruby-0.5.4 spec/code/parser/string_spec.rb
template-ruby-0.5.3 spec/code/parser/string_spec.rb
language-ruby-0.5.3 spec/code/parser/string_spec.rb
code-ruby-0.5.3 spec/code/parser/string_spec.rb
template-ruby-0.5.2 spec/code/parser/string_spec.rb
language-ruby-0.5.2 spec/code/parser/string_spec.rb
code-ruby-0.5.2 spec/code/parser/string_spec.rb
language-ruby-0.5.1 spec/code/parser/string_spec.rb
template-ruby-0.5.1 spec/code/parser/string_spec.rb
code-ruby-0.5.1 spec/code/parser/string_spec.rb
template-ruby-0.5.0 spec/code/parser/string_spec.rb
language-ruby-0.5.0 spec/code/parser/string_spec.rb