similar to: assert_recognizes with requirements => {:method => something}

Displaying 20 results from an estimated 10000 matches similar to: "assert_recognizes with requirements => {:method => something}"

2010 Feb 15
1
possible bug: using assert_recognizes with extras
Hi. I am trying to use the extras hash parameter in assert_recognizes. I am using. assert_recognizes(expected_options, path, extras={}, message=nil) I have something similar to the documentation: assert_recognizes {:controller => ''items'', :action => ''list'', :id => ''1'', :view => ''print''},
2008 Jun 12
1
unidirectional belongs_to polymorphic
The setup: class Location::Base < ActiveRecord::Base set_table_name :locations ... end class Location::Address < Location::Base ... end class Location::Airport < Location::Base ... end class Person < ActiveRecord::Base belongs_to :location, :polymorphic => true, :class_name => "Location::Base" ... end I want a unidirectional belongs_to relationship. That
2007 Aug 30
1
alias_method_chain stack level too deep in Rake test only
I have an odd error. I have the following module: module ActionController module SslSupport def self.included(base) raise "#{base} does not define url_for" unless base.method_defined?(:url_for) unless base.respond_to?(:url_for_without_ssl_supprt) base.send :include, InstanceMethods base.send :alias_method_chain, :url_for, :ssl_support end
2006 May 09
1
name_url in tests
Hi there, I posted earlier asking about testing named routes in functional tests, but got no response, so I''m making my question less specific. It seems from the docs that it''s possible to to test named routes in cases such as: asserts_redirect_to name_url(:param => "whatever") but I haven''t seen any mention of it being used with any other tests and I keep
2006 May 18
6
Routes and Testing Routes
I love the routes feature for RoR...until now. I''m trying to write tests to make sure my urls are correctly mapping to the routes I expect them to map to. This is driving me nuts because I simply can''t get any of my tests to pass. I have thus concluded that routes must work differently than I thought. If someone could possibly point me in the right direction, I would really
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.
2007 Jul 25
1
strange rake behavior
I''m getting some really really really odd testing behavior. 1. Running rake test:units passes with flying colors. (Well, that''s not what I mean by weird, but I suppose it is ;) ) 2. Running rake test:functionals yields something like ..........................E..............EEEEE.......EEEE...rake aborted! But doesn''t print any stack traces or error message output
2007 Jul 02
6
Testing route globbing and limitations of get()
Hi everyone, I''m new to rails and also to rspec, but I tried to do my homework. To answer my questions, I searched this list''s archives, the Rails API, and Google, to no avail. Therefor, I''d be grateful if someone could point me in the right directions: 1) There doesn''t seem to be a counterpart to assert_recognizes in rspec. route_for() won''t work
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 =>
2015 Apr 02
1
Windows Firewall, network discovery
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
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
2007 Dec 21
0
db:migrate problem
I''m having a bit of trouble getting a rails project to build properly within cruisecontrolrb. My cruise task is in lib/tasks/my_project.rake, and looks like this: task :cruise => [''db:test:purge'', ''db:migrate'', ''db:test:prepare'', ''test:coverage:clean'', ''test:coverage:prepare'',
2009 Feb 22
3
Which email clients support SMTP/IMAP via STDIN&STDOUT of proxy command?
Which email clients support SMTP/IMAP via STDIN&STDOUT of proxy command? I would like to be able to use local and remove dovecot to access maildir *without* running dovecot daemons. -- [pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu If the future navigation system [for interactive networked services on the NII] looks like something from Microsoft, it will never work. -- Chairman
2003 Feb 11
1
Option to limiting sshd "banner" to interactive/password-auth/tty (or something along those lines) sessions
Hi. It would be of utmost utility if there were a way to cause the sshd "banner" configuration setting to only print the banner in certain circumstances. What I'm actually after is avoiding printing out the banner for non-interactive sessions, so that if I run "ssh somehost ls" I don't get the login banner, but if I just type "ssh somehost" I do (at
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
2009 Apr 24
11
We're sorry, but something went wrong.
Great. I''m in the development environment and that is the error message I get?! What good does that do me? I''m trying to follow along with the examples in AWDWR(3rd.), and I have this method in a store controller: private def find_cart Cart.new end That works fine, except that every request(initiated by clicking on an ''add to cart'' button) will
2006 May 18
2
Help with Routes
I love the routes feature for RoR...until now. I''m trying to write tests to make sure my urls are correctly mapping to the routes I expect them to map to. This is driving me nuts because I simply can''t get any of my tests to pass. I have thus concluded that routes must work differently than I thought. I will try to explain my understanding of how routes work. Via this
2001 Nov 17
1
OK, I'm doing something stupid.
Freshly installed Mandrake 8.1, no Windows anything except some fonts. Both the included 20010731 and the cooker 20010824 give me the same result when I try to run any Windows setup from CD: I get a burst of FIXME:pthread_rwlock_unlock FIXME:pthread_rwlock_rdlock pairs followed by nine fixme:psdrv:PSDRV_BITMAP_SelectObject stub at which point winereal sucks 100% of available processor slices
2006 Feb 28
1
make a method in a controller do something by console script
is there a possibility to automate a method in a controller by a ruby script , i have written a method which is taking rssfeeds from other sites and puts it to my database , but i want to have this method called each 15 minutes , can you do it by a console script or do i have build a stand-alone program? can somebody put me on the correct track?or give me some hints greets Klaas -- Posted