search for: ocampo

Displaying 13 results from an estimated 13 matches for "ocampo".

Did you mean: campo
2007 Aug 30
7
mock_model in spec/lib
Has anyone else run into a problem with trying to use mock_model in spec/lib ? For some reason, I can take the same spec, put it in spec/models, have it run fine, but put it in spec/lib, and have it complain about not being able to find #mock_model Thanks, Edward
2007 Aug 19
4
describing a mock_model as being an instance
Is there a built-in way of describing a mock_model as being an instance, beyond stubbing the eval("Object.methods - Object.new.methods") methods to throw NoMethodErrors? Edward
2007 Aug 01
4
:render expects possible?
Hi, Is it possible to do the following in a controller spec? @controller.should_receive(:render).with(:layout => false) I''ve been trying this kind of thing and it looks like RSpec is messing with the render calls, and requires you to use render_template instead. Could we have at least a warning that mentions that parameters passed to :render expectations are going to be thrown
2007 Jul 22
2
have_tag for href with specific link?
Hi folks, I''m trying out this idea of "outside-in" and writing specs for my views first. Being a person who generally starts with some scribbles of a user interface and moves right to models, this has yet to be fun, but I''m giving it a shot. My question: I''m trying to specify that an index page should show a list of things, each with a link to a delete
2007 Jun 13
3
standard location for spec helpers
Is there a standard location for spec helpers (as in bits of code that help write specs)? I''m mocking/stubing-out portions of ActiveSalesforce, a remote-database abstraction layer so my specs won''t have to rely on a remote connection, but I''m not sure where I should be putting this helper lib. I was thinking of just sticking it in spec/ but I was curious if
2007 Jun 28
7
Custom report outputting text, expected and actual on succes?
I would like to output the following information when running a spec (_also_ on success): - the description text - the expected value - the actual value After looking through the documentation I thought custom formatters might be the way to go, but unfortunately it does not look like all variables are accessible from there? I need this for an academic report where all testing needs to be
2007 Aug 14
2
AssociationTypeMismatch with RSpec 1.0.8, autotest running with drb
Before I chalk this up as a bug and report it, I just want to make sure I''m not doing something silly. Running ZenTest''s autotest on OS 10.4.10 with RSpec 1.0.8, drb, produces the following failed test: ActiveRecord::AssociationTypeMismatch in ''User should create an avatar with uploaded_data'' Avatar expected, got Avatar This only happens with that exact
2007 Jul 09
12
Mocking User.find( :all, :limit => 10 )
Hi, I''m trying to setup a mock for my controller test but I can''t get it to recognise the mock. I use it "should find all users" do User.should_receive(:find).with( :all, :limit => 10 ).and_return([@user]) do_get end and in the controller @users = User.find(:all, :limit => 10 ) But this does not work. It gives me User expected :find with (:all)
2017 Jan 25
2
Enconding
Hola. Tengo un problema incómodo. En el servidor de BD, existe esta tabla: SELECT * FROM motivodebito 1;"Débito presentado extemporáneamente." 2;"Corresponde la aplicación del nomenclador GCBA vigente al momento de la prestación." 3;"No registra convenio de prestaciones vigente al momento de la prestación." 4;"Débito presentado sin documentación ni
2003 Sep 04
0
Mantenga la Seguridad en el Trabajo ...
...SEGURIDAD EN EL TRABAJO Expositor: Lic. Antonio Sarabia Cantú Depto. de Inspección en el Trabajo Secretaría del Trabajo y Previsión Social La cita es el viernes 9 de Septiembre de 2003 en el Edificio Canaco, ubicado en Ocampo 411 Pte., Centro, de 3:00 p.m. a 6:00 p.m., Costo para socios $1,250.00 + IVA Costo para no Socios $ 2,250.00 + I.V.A. Recuerde que usted puede asistir a este evento SIN ningún COSTO utilizando los beneficios que le brinda la propuesta de valor Peso que no da Tr...
2008 Mar 08
0
BDD Google Mailing list.
...age syntax but occasionally it creeps up in there. We would love to have Ruby BDD''rs (is that a word) lend their perspective on BDD as well. Looking forward to hear from you all. Google BDD Mailing List<http://groups.google.com/group/behaviordrivendevelopment> -- God Bless, Joe Ocampo agilejoe.lostechies.com "How do you benefit if you gain the whole world but lose your soul in the process?" Mark 8:36 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080308/d80ed4f6/attachment.html
2006 Jun 07
0
postgres-pr on windows
After installing One-Click Rails and Postgres 8.1 on Windows, I tried to install the pure-ruby postgres adapter by running gem install postgres-pr It installed fine, and I can do this: G:\InstantRails\rails_apps>irb irb(main):001:0> require "rubygems" => true irb(main):002:0> require "postgres" => true But then if I specify in my config/database.yml to use
2007 Dec 04
0
shared behaviour for all views
Is there a way I can write something like a shared behaviour for all views that just checks the page responds with a 200 status and has a title, meta tags, and an h1? Here''s an idea for a shared behaviour (that only applies if I set views to use it manually with it_should_behave_like "a standard layout"): describe "a standard layout", :shared => true do