Displaying 7 results from an estimated 7 matches for "hasmanydevelop".
2007 May 29
5
Trouble defining a stub method for a controller
...if I am doing something really wrong (let''s not say
stupid for now), but I haven''t been able to stub a controller method
like:
controller.stub!(:logged_in?).and_return(true)
Please help, this is driving me nuts ;-)
--
An?bal Rojas
http://www.rubycorner.com
http://www.hasmanydevelopers.com
2007 May 21
2
logger anybody?
...`logger'' for
#<#<Class:0x278bee0>:0x253cdec>
Not sure if this is the spected behaviour (haven''t checked under the
hood) It was just annoying not having a logger instance available as in
Rails out of the tests.
--
An?bal Rojas
http://www.rubycorner.com
http://www.hasmanydevelopers.com
http://www.to2blogs.com
http://anibal.rojas.com.ve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070521/8d88fe12/attachment.html
2007 May 27
1
annotate_models plugin to annotate RSpec specs and fixture
...in(SPEC_DIR, klass.name.underscore + "_spec.rb")
+ annotate_one_file(spec_file_name, info)
+
fixture_file_name = File.join(FIXTURE_DIR, klass.table_name + ".yml")
annotate_one_file(fixture_file_name, info)
end
--
An?bal Rojas
http://www.rubycorner.com
http://www.hasmanydevelopers.com
2006 Dec 24
1
How to get database.yml configuration to use it in a rake taks
...ment configuration from the
database.yml in the /shared folder of a deployed rails application. I
could use scp to get the file, write it to temporary file, read it and
open it with YAML, but is there a better way to do this?
Best regards,
--
AnĂbal Rojas
http://www.rubycorner.com
http://www.hasmanydevelopers.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this gro...
2007 Aug 31
2
How to spec routes for a resource nested in multiples resources?
...; 1).should == "/operador/1/llamadas;exitosas"
- controller.send(:operador_exitosas_llamadas_path, at operador).should
== "/operador/22/llamadas;exitosas"
but nothing works.
any clue?
thanks in advance
--
Edgar Gonz?lez Gonz?lez
E-mail: edgargonzalez at gmail.com
http://www.hasmanydevelopers.com
http://www.rubycorner.com
http://www.to2blogs.com
http://www.lacaraoscura.com
--
2007 May 29
0
Specify methods (GET, POST) allowed for an action in Rails
...ello,
I have been trying without sucess to specify that a specific
action should only be reached when the appropiated method is used. I
think I am missing something obvious... :-) (and yes, the context of
this problem is the restful routes)
--
An?bal Rojas
http://www.rubycorner.com
http://www.hasmanydevelopers.com
2008 May 21
32
Rack, Camping 2.0++
===
1. Camping on Rack
===
I''ve just finished rewriting Camping to use Rack in the "core". I got rid of
(a little less) than 1kB in camping.rb and removed lots of un-necessary files
(lib/server/*.rb, fastcgi.rb & mongrel.rb).
bin/camping does now only provide WEBrick, Mongrel and console-support and
should only be used in development. It uses Rack::ShowExceptions to catch