search for: antipatterns

Displaying 6 results from an estimated 6 matches for "antipatterns".

2008 Jan 30
2
Testing a call to super
Did any further discussion ever come of this? I take it is officially not supported currently? I just get an odd error when I try it (it throws a "0 expected 1 received", no matter what stubbing/expectation combo I use), so came looking around on google, and finally the mailinglist. Here''s my stripped down example: http://pastie.caboo.se/145603 (it fails with expects too)
2009 Mar 04
2
Testing my scripts?
Hello RSpec mailing list, I have a question which I''m sure someone here has a "duh!" answer to. :P A lot of the Ruby programming I do is around installing servers and automating various tasks. The pattern I use goes as follows, I''m sure you''ll see where the gap is. Write a failing test. Write enough Ruby code to make it pass. Continue until I have a class (or
2012 Mar 11
1
notifications (or flash messages) in an api application
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello! As a noob in rails, i am having a problem on how to find a decent and straightforward notifications system for my application. Being a Api like application (talking with the client is made using JSON / later on XML as well), i have a problem finding a good solution to feed my needs. I have tried to use the rails validators, but then i have
2016 Jan 26
3
Just need to vent
On Tue, Jan 26, 2016 at 11:51:29AM +0000, Peter Duffy wrote: > I'm also still trying to figure out in what way systemd is supposed to > be "better". I've seen the following things claimed for it: Of the three things you list, hot-plug is certainly an important one. But, it's not the big deal. The big deal is that systemd is not just a fire-and-hope startup system, but
2013 Jun 12
3
puppet agent errors for non included module.
Does anyone know why i would get a module error for my ''base'' module that I''m not even including for a node? I''m explicitly NOT include the ''base'', yet puppet-client-t2 still errors when i pull it in. Snips from both are below. Any ideas why this would happen? Thanks, JJ ==== site.pp file [root@puppet-master-t1 puppet]# cat
2011 Oct 11
10
Create Two objects at the same time
I have user model and referral model. Referral model has user_id as field. Now when a new user is created, I need to call referral#create as well and pass it the id of the newly generated user to user_id of referral model. How can I do that. -- 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