search for: route_to

Displaying 10 results from an estimated 10 matches for "route_to".

Did you mean: route_for
2010 Jun 20
7
rspec-rails 2.0.0.beta.12 showing undefined method error for route_to
...s directory. Then I went to my rails 3 app directory and I ran "bundle install" which showed this: http://gist.github.com/446011 and when I ran gem list I got: http://gist.github.com/446005 Everything seems perfect, but when running some route specs I got an undefined method error for route_to method. I''ve checked in the github repository and it actually exists. So I decided to look inside the library but I couldn''t find the /rspec/rails/matchers/ routing_spec_matchers.rb directory and either the matchers directory. So, my question is: Why is not the file in there? Why...
2011 Mar 17
0
Testing route with proc --- possible and how?
...In spec/routing/routing_spec.rb (note that all necessary test data for it to pass is set up and verified): describe "Shorter URL redirect" do it "routes GET ''STU1VWX'' to stations/1" do { :get => "/", :hash => "STU1VWX" }.should route_to( :controller => "stations", :action => "show", :params => {:id => 1} ) end end The problem is that I get this error: Failure/Error: { :get => "/", :hash => "STU1VWX" }.should route_to( The recognized options...
2009 Oct 06
3
rspec-rails 1.2.9 Released
...p://rubyforge.org/projects/rspec> * <http://github.com/dchelimsky/rspec-rails> * <http://wiki.github.com/dchelimsky/rspec/rails> * <rspec-devel at rubyforge.org> Behaviour Driven Development for Ruby on Rails. Changes: ### Version 1.2.9 / 2009-10-05 * enhancements * added route_to and be_routable matchers (Randy Harmon). Closes #843. * Provide better failure message for render_template when redirected (Josh Nichols). Closes #885. * generated specs require ''spec_helper'' * bug fixes * pass the correct args to super in controller#render depending on...
2009 Nov 10
10
Un-recognised routes that do exist, using namespaces & subdomain checking
I''m getting really cheesed off with RSpec not matching some of my routes when controller testing when I have subdomain checking (courtesy of subdomain-fu) on namespaces. These routes appear in the rake routes output, and work fine via HTTP requests . The really annoying thing is it''s working fine for routes that aren''t at the root of the namespace. E.g. say I have
2010 Oct 20
1
Routing errors with Rails 3.0.1 and Rspec 2.0.1
I''m sure something is borked in my app, but I can''t seem to track it down. A few commits back, my app was fully passing my spec suite. It was on Rails 3.0.0 and Rspec 2.0.0.beta.20. I''ve now upgraded to rails 3.0.1 and rspec 2.0.1 Now, I''m getting tons, and I mean tons of failures that say things like, to take a simple case: 113) SiteController GET
2013 Jan 27
0
[next] webgen 1.0.0.beta3
...anks to the recent changes in RDoc 4 * The website templates are now available in a separate extension bundle (see https://github.com/gettalong/webgen-templates-bundle) * New meta info ''routing_path'' for specifying a different routing path (e.g. the path that gets used in Node#route_to, Node#link_to) * New link_definitions extension to allow specifying link definitions for the whole website. Currently, this feature is only used by the kramdown content processor. * Performance improvements * Many bug fixes For a complete list of changes since beta2 have a look at the commits!...
2011 Apr 13
0
RSpec Routing Error: Expected block to return true value.
...e below code, does anyone have any ideas as to where I could be screwing up? Thanks. # in spec/routing/search_routing_spec.rb it "routes /search/users/foo/bar to search#users with name => foo, server => bar" do { :get => ''/search/users/foo/bar'' }.should route_to( :controller => "search", :action => "users", :name => "foo", :server => "bar" ) end # in routes.rb get ''/search/users/:name(/:server)'' => ''search#users'', :constraints =>...
2012 Jul 12
0
Set requests' header inside spec/routing
...;'t correct: require ''spec_helper'' describe "friends routing" do it "routes to #index" do get("/my/friends.json", nil, {''HTTP_ACCEPT'' => ''application/vnd.myapp+json; level=1''}). should route_to({ action: "index", controller: "api/v1/private/my/friends", format: "json" }) end end ...because `get` can take only 1 param. I tried different ways (such as with request.headers[''Accept''] or @re...
2007 Jun 28
3
Img relocatable inside plugin
Hi, i''m searching to insert a relocatable image into a my plugin, but i don''t want to reimplement what was already done... i saw that in the gallery plugin there''s something like: <img src=\"{relocatable: #{imgname}}\"/> but i wasn''t able to reproduce this behavior.... How can i make this work? thanks, bye. -- -gaspa-
2008 Mar 16
8
include a page in another
Hi, for my isbn plugin, I''m wishing to incldue generated isbn pages in caller pages (the ones with <isbn value=""> tags). But I want my isbn page to be processed before for its tags to be transformed (like the relocatable or other ones). Besides, i do not want its header to be included. Is there an easy solution for that, or should I do the work myself ? -- Nicolas