title: Ruby Rspec csv parser syntax error, unexpected ',', expecting ')
body: <p>Hello friends I am new to Ruby Rspec</p>
  <p>I am testing a Ruby Rspec csv parser  for csv manipulation with</p>
  <pre><code>describe &quot;bashing outing the strings&quot; do
    it &quot; inputs&quot; do
      expect(guess_csv(&quot;100,24,32\n42,52,62&quot;, &quot;,&quot;, &quot;\&quot;&quot;)).to eq([[&quot;100&quot;, &quot;24&quot;, &quot;32&quot;], [&quot;42&quot;, &quot;52&quot;, &quot;62&quot;]])
    end
  </code></pre>
  <p>and ruby.rb</p>
  <pre><code>def parse_csv(csv, separator, quote)
   final_array = []
    lines = (&quot;100,24,32\n42,52,62&quot;, &quot;,&quot;, &quot;\&quot;&quot;,  quote: &quot;'&quot;, separator: &quot;,&quot;).split(/\,\n/).map(&amp;:parse_csv) do |line|
    line.split(',')
     final_array &lt;&lt; line.scan(/\,\n/)
    end
    final_array 
  end```
  
  
  
  An error occurred while loading spec_helper.
  Failure/Error: require 'solution'
  </code></pre>
  <p>An error occurred while loading spec_helper.
  Failure/Error: require 'servertime'</p>
  <p>SyntaxError:
  /chicago/default/lib/servertime.rb:3: syntax error, unexpected ',', expecting ')'
  ...lines = (&quot;100,24,32\n42,52,62&quot;, &quot;,&quot;, &quot;&quot;&quot;,  quote: &quot;'&quot;, sepa...
  ...                              ^
  /chicago/default/lib/servertime.rb:3: syntax error, unexpected ',', expecting ')'
  ... = (&quot;100,24,32\n42,52,62&quot;, &quot;,&quot;, &quot;&quot;&quot;,  quote: &quot;'&quot;, separator...
  ...                              ^
  /chicago/default/lib/servertime.rb:3: syntax error, unexpected ',', expecting ')'
  ...00,24,32\n42,52,62&quot;, &quot;,&quot;, &quot;&quot;&quot;,  quote: &quot;'&quot;, separator: &quot;,&quot;)...
  ...                              ^
  /chicago/default/lib/servertime.rb:3: syntax error, unexpected ',', expecting ')'
  ...52,62&quot;, &quot;,&quot;, &quot;&quot;&quot;,  quote: &quot;'&quot;, separator: &quot;,&quot;).split(/,\n/...
  ...                              ^
  /chicago/default/lib/servertime.rb:6: both block arg and actual block given</p>
  <h1>./spec/spec_helper.rb:1:in `require'</h1>
  <h1>./spec/spec_helper.rb:1:in `&lt;top (required)&gt;'</h1>
  <p>No examples found.
  No examples found.</p>
  <pre><code>Just wondering how to fix it
  </code></pre>