similar to: Functional tests with routes

Displaying 20 results from an estimated 900 matches similar to: "Functional tests with routes"

2006 May 17
0
Strang Behavior when testing Routes
I have the following route: [code] map.connect '':platform_filter/:software/:version/:platform/:distribution_channel/:id'', :controller => ''user/version'', :platform_filter => /all/, :platform => /windows|macintosh|unix|linux/, :distribution_channel => /Download|download/, :action => ''download'', :id =>
2011 Apr 21
0
Routing assertions
Hi Thanks for help me out I have two routes : match ''admin/categories'' => ''admin#categories'', :as => ''admin_category'' match ''admin/categories/:sub_category'' => ''admin#categories'' In rspec
2005 Dec 14
0
assert_generates and catch-all routes
I have a catch all route. map.connect ''people/*args'', :controller => ''people'', :action => ''default_action'' I can test this one way, with assert_recognizes. expected_options = { :controller => ''people'', :action => ''default_action'', :args => [''made_up''] } assert_recognizes
2007 Apr 06
0
Possible bug in ActiveRecord::Base#to_xml and caching
So I''ve got this weird problem showing up in the production environment to where when I grab xml from resources, the xml results get cached, but not used. This means that every subsequent request appends the results to the cache. This happens when config.cache_class = true; happens in both WEBrick and my Apache2 fastcgi deploy. And an example run:
2006 Apr 08
2
Does anybody know what what is causing this console message?
This started, I think, after I upgraded to 1.1. trunk 508 $ruby script/console Loading development environment. /usr/local/lib/ruby/1.8/test/unit/assertions.rb:265: warning: already initialized constant UncaughtThrow >> Everything seems to work in the console, however. Keith -- Posted via http://www.ruby-forum.com/.
2006 Jan 20
2
Logging from a functional (or unit) test
I''ve tried any number of ways to output information to the test log from my tests, but nothing seems to work. Is there a setting someplace that I am missing? I''m just trying to do something on the order of logger.info "blah blah" from my test. TIA, Keith -- Posted via http://www.ruby-forum.com/.
2008 Jul 19
1
Routes
Hi there, I''m having an issue with routes I frankly dont get. I have a controller named map which takes in a hash string and converts that to an actual url, works great so localhost:3000/f3gg or whatever works fine now, I have a controller which I want to use to add some records (needs to go through AJAX) I want two strings, from and to but nevermind that for now since I''m too
2006 Aug 03
14
What OS do you use for development?
Just out of curiousity, what OS do most of you use for development? Do you prefer to use WinXP to do your development, and then deploy to a linux server, or do you actually use some distribution of linux (Ubuntu, Debian, Gentoo, etc) for development? Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Jul 05
2
How to write get functional test when there is no action by that name
I have following line in route.rb #event info for an event name map.connect ''event/:name_url'',:controller => ''home'',:action => ''event_info'' It causes a URL like http://localhost:3000/event/_jewels_exhibition_ to be sent to the home controller with action as ''event_info''. I am trying to test this action. My first
2006 Apr 06
4
Engines 1.1.1
Since a minor change in Rails (renaming the file that the version is stored in, namely) causes a bit of a hiccup for the Engines plugin, here''s a new release, full of bug fixes and other nice things. ALL users of Engines are advised to update their copy of the plugin to get these fixes. The Engines plugin is fully backwards compatible with Rails 1.0. Anyway - to update, please download
2006 Apr 24
1
A question of style - save vs. save!
A pseudo poll on AR error handling... With AR, you have the choice between the following: (1) if thing.save go_for_it else handle_the_error end (2) begin thing.save! rescue RecordInvalid => error handle_the_error end (3) override rescue_action_in_public (ala the recipes book) or do something homegrown, and then just thing.save! --- The questions are: -Which idiom do you use and
2006 Mar 29
6
Prototype Window Class 0.6
Hi I have just released a new version of my Prototype Window Class included modal windows and a lot of stuff that some people send me, thanks to all of you guys for your support. Seb
2009 Mar 15
0
rspec-rails 1.2.0 Released
rspec-rails version 1.2.0 has been released! * <http://rspec.info/> * <http://wiki.github.com/dchelimsky/rspec> * <http://wiki.github.com/dchelimsky/rspec/rails> * <http://wiki.github.com/dchelimsky/rspec/upgrades> Behaviour Driven Development for Ruby on Rails. Changes: ### Version 1.2.0 IMPORTANT INFORMATION: Due to changes in Rails-2.3, there are some changes in
2006 Jan 11
14
User Engine/General Engine issues
I''m trying to get the login/user engine combo up and working and am having difficulties. I got the login engine up and running fine, no problems. Now, on to the user engine. After fixing the needed stuff in the bootstrap task so it loads I''m able to login as the default admin ok. BUT none of the views/controllers that are in login/user_controller are being overridden by the
2005 Jan 08
1
Value without key (D2GS)
Hello, wine-users. Help me please! I have D2GS (Diablo2) when i run thim in Linux: wine D2GS.exe Line 13: Error creating key '[\\SOFTWARE\\D2Server\D2GS]' Line 14: Value without key '@="Diablo II Close Game Server"' Line 15: Value without key '"AutoUpdate"=dword:00000000' Line 16: Value without key
2006 May 08
0
testing named routes
Hello, I''m trying to test routes named within a map.with_options statement. I have in routes.rb: map.with_options :controller => ''films'' do |f| f.overviews ''films/:index'', :action => ''index'', :requirements => { :index => /index(artist|date|title)\.html/ }, :index => ''new'' etc... end and
2006 Apr 26
10
Rails Document must be more detailed otherwise...
In java/c++ the method signature provide a good details on which parameters the method accept, but in rails the ability to send hash as parameters make it impossible to know which parameters can be send. This ability make the rails API doc a must to be full of details and not supply partial examples of usage. When for example I see *link_to_remote*(name, options = {}, html_options = {}) I would
2006 Mar 26
2
Controllers in modules, not recognised - driving me mad!
Hi, I hope somebody can help me here but I''m having a very strange problem getting Rails to recognise controllers inside modules. The strange thing is, it was working the other day and I''ve not changed anything as far as I''m aware. I''m running on OSX using Ruby 1.8.4 and Rails RC1 (but I''ve also tried rolling back to Rails 1.0 and tried Edge Rails)
2006 May 21
12
TDD for Rails book?
It seems like half the people on this list are writing a book on Ruby or Rails. For all the hints I''ve seen strewn across the list I have yet to see one that will focus on test-driven development for either Ruby or for Rails. If anyone is looking for a topic, please consider this. I''ve been trying to wrap my brain around the TDD process, but its way of thinking is
2009 May 02
10
Problem verifying routing error
Hi, When upgrading to rspec/rspec-rails 1.2.6 gem (from 1.1.12), I''m having a new problem verifying routes that should not exist. This is to support something like this in routes.rb: map.resources :orders do |orders| orders.resources :items, :except => [:index,:show] end I used to use lambda {}.should_raise( routing error ), but it stopped detecting any raised error.