<br><br><div class="gmail_quote">On Nov 28, 2007 11:58 AM, Pito Salas <<a href="mailto:rps@salas.com">rps@salas.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I installed Rspec and am getting the following failure:<br><br>$ sudo gem install rspec<br>Successfully installed rspec-1.0.8<br>Installing ri documentation for rspec-1.0.8...<br>Installing RDoc documentation for rspec-1.0.8..
.<br><br>$ spec -v<br>RSpec-1.0.8 (r2338) - BDD for Ruby<br><a href="http://rspec.rubyforge.org/" target="_blank">http://rspec.rubyforge.org/</a><br><br>$ cat acct.rb<br>describe Account, " when first created" do
<br> it "should have a balance of $0" do<br> ...<br> end<br>end<br>$ spec acct.rb<br>/opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/runner/<br>behaviour_runner.rb:106:in `load': ./acct.rb:3: syntax error,
<br>unexpected tDOT3 (SyntaxError)<br> from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/<br>runner/behaviour_runner.rb:106:in `load_specs'<br> from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8
/lib/spec/<br>runner/behaviour_runner.rb:105:in `each'<br> from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/<br>runner/behaviour_runner.rb:105:in `load_specs'<br> from /opt/local/lib/ruby/gems/1.8/gems/rspec-
1.0.8/lib/spec/<br>runner/behaviour_runner.rb:49:in `prepare!'<br> from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/<br>runner/behaviour_runner.rb:19:in `run'<br> from /opt/local/lib/ruby/gems/1.8/gems/rspec-
1.0.8/lib/spec/<br>runner/command_line.rb:17:in `run'<br> from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/bin/spec:3<br> from /opt/local/bin/spec:16:in `load'<br> from /opt/local/bin/spec:16
<br><br>Must be a version or other config problem. Can anyone point me in the<br>right direction?<br><br>Thanks,<br><br>Pito<br><br><br>_______________________________________________<br>rspec-users mailing list<br><a href="mailto:rspec-users@rubyforge.org">
rspec-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br></blockquote></div><br>it's saying you have a syntax error.. Can you post your whole file?
<br><br>