Hi All, New to rspec. Done some Rails, done TDD in other languages, trying to get the two to meet. Getting a syntax error on my first routing spec:
context "public routing" do it "routes / to public#landing" do { :get => "/" }.should route_to{:controller => "public", :action => "landing"} end end I run: rspec spec/ I get: /rspec/core/configuration.rb:419:in `load': /Users/peterbell/Sites/rails/skinnio-web/spec/routing/public_spec.rb:6: syntax error, unexpected tASSOC, expecting '}' (SyntaxError) ....should route_to{:controller => "public", :action => "landin... ... ^ /Users/peterbell/Sites/rails/skinnio-web/spec/routing/public_spec.rb:6: syntax error, unexpected ',', expecting '}' Looks like it's expecting just a single argument to route_to, but I see examples all over the place with two arguments. I'm running Rails 3.1rc1 and just updates rspec to 2.6.1 this morning. Any thoughts much appreciated! Best Wishes, Peter _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users