similar to: DRYing up stories

Displaying 20 results from an estimated 6000 matches similar to: "DRYing up stories"

2008 Jan 11
1
testing modules
I''ve developed a module to include in ActiveRecord derived classes. Can I test the module without having to tie it to a particular class? atm, I''m including it in my User class and writing the tests in user_spec.rb, but I don''t like the idea of tying the module tests to those of the class. I may extract the specs to a shared description and include that in the specs for
2007 Oct 14
1
Story Runner: DRYing items used in many stories
The number of stories I have is growing and I''m writing the following step long hand in each story. Given ''a user named'', ''Andy'', ''Watts'' do |first_name, family_name| @email = first_name + ''@test.lan'' create_user( :first_name => first_name, :family_name => family_name, :email => @email )
2007 Dec 20
19
Story runner rake task
What''s the status on a rake task for the story runner. If nothing is in progress, where could I start to try and build one? JD
2008 Jun 14
15
Reusing story snippets
I find myself doing this: Scenario "logged in user visiting the home page" do Given "A logged in user" do a_logged_in_user end When "..." Then "..." end The a_logged_in_user method is a helper method in helper.rb which sets up the state so that the user can browse the website. Later in the story of course, I can just do ''Given
2008 Jun 02
2
get method under 1.1.4 in Stories is undefined
HI, After I upgraded to RSpec 1.1.4 (from git), my stories all failed. I was using Webrat and the first thing I noticed was the ''visits'' method was gone. I then backtracked to just using ''get'' and got the same undefined method exception. I confirmed it was still working in 1.1.3 Eventually, I got it to work doing this: in my first Given: @app =
2007 Oct 20
14
Problems with form_for and partials
i''m having problem with a form_for situation where i''m trying to DRY out the repeated parts of my forms and put them in common/form and render the form elements via another partial in controller_name/_form. Here''s the first form # app/views/common/form <% form_for ... do |f| -%> <%= render :partial => "params[:controller]/form", :object => f
2014 Apr 30
2
Problem with Renaming R object
Hi, I have a problem in renaming R object and saving them within a loop. For ex: for (i in 1:length(all_files)) { uncov_GR <- "variable created in loop" filename <- paste0(sample_name[[i]],"_uncov", ".Rdata")) save(uncov_GR,file=filename) } Within the above short code (out of a long program), I want to
2002 Dec 06
1
speak freely -> 2074 port
I want to talk with my friend with microfon with program speak freally. He has firewall (shorewall) on his linux serwer and has other computer as a client and I have the same network connected winh internet. This program use port 2074 to communicate. We have done something like this : DNAT net local:192.168.1.6 tcp 2074 DNAT net local:192.168.1.6 udp 2074 on linux serwer with shorewall (rules
2011 Jun 25
2
Howto Backup Domain Controller (BDC) for the Primary Domain Controller (PDC) in Centos Openldap+samba 3.3 Please send to...
Dear All, Please help me in this regards, Howto Backup Domain Controller (BDC) or Secondary domain controller for the Primary Domain Controller (PDC) in Centos 5.6 Openldap+samba 3.3 Please give the step by step. Regards kamal
2010 Jun 11
3
how to "Disable Samba Roaming profile"
Hey all, please let's me know how to "Disable Samba Roaming profile" In OpenLDAP+SAMBA SERVER Regards Kamal
2007 Dec 05
7
Better RESTful routes with fb_sig_request_method
With the new fb_sig_request_method provided by Facebook, I''ve patched shanev''s pseudo-resource routes to generate restful routes, minus some exceptions. The announcement: http://www.facebook.com/developers/message.php#msg_126 Patch is submitted here: http://rubyforge.org/tracker/index.php?func=detail&aid=16105&group_id=4187&atid=16132 Blog entry about it:
2006 Jul 17
3
Best practices - field initialization based on display rules
All, I have a form with the following field interaction rules. Given checkbox A, text field B text field C If checkbox A is checked then make text field C equal to the value of text field B and disable field C. If checkbox A is unchecked then enable field C. In order to display a form where I''m manipulating an already existing object, I have something like this in my RHTML template
2007 Nov 29
5
Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications
Hey guys, We developed this plugin while writing my first real set of RSpec stories. It''s still missing a lot of functionality, but it''s useful to us as is, so I''m shipping 0.1.0. (Patches welcome. :) ) Code is available at: http://svn.eastmedia.net/public/plugins/webrat/ What do you think? -Bryan Here''s the README:
2008 Jan 02
2
[LLVMdev] runtime optimizations in LLVM
Hello, (im new to LLVM , so pl excuse if this is a naive q). Can someone provide info on what runtime optimizations are done in LLVM? do you have something along lines of JVM's hotspot feature? How efficient is the optimized code vis-a-vis native code? thanks -kamal ____________________________________________________________________________________ Never miss a thing.
2008 Jul 18
4
btrfsctl -A not returning useful information
[root@btrfs progs-unstable]# btrfsctl -A /dev/sdb ioctl returns 0 [root@btrfs progs-unstable]# btrfsctl -A /dev/sdc ioctl returns 0 /dev/sdb has a btrfs, while /dev/sdc is blank. What''s that output supposed to mean ? Is it a bug ? -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info
2013 Jun 26
2
Error on executing functions from installed package
Hi, I am currently building an R package and I am facing a peculiar problem where some of the functions does not work within the package. However, if I source the script the function works. For example, in a method for parallelization of analysis on each chromosome simultaneously I am receiving error at the following position of the code: # this profile the information chromosome wise and
2012 Aug 09
4
Asterisk on Rackspace, My SIP phone behind NAT
Hi, I've successfully setup Asterisk on my local PC and can make call using Twinkle to the server. But, I cannot call to my Asterisk server at Rackspace. I have been trying several things to figure it out, no luck. My PC is behind NAT, so I've set that up in sip.conf (nat=yes). I can ping my Rackspace server so it seems to be Public-static IP. Anyway, I tried with setting externip,
2008 Jun 09
6
Selenium/Watir usage along side Webrat in story testing
This is related to Selenium/Watir usage along side webrat in story testing. MHS_Testing and Rspec-ui provide some great help for testing through frameworks like Selenium/Watir. But there is something missing, Webrat has changed the landscape somewhat with Acceptance Tests/Story Driven development. Now I have a choice: 1. Tests and rails process run as one test process (Webrat) 2. Use
2008 Jun 07
3
DRY validates_format_of?
In a model I have following validates_format_of. Is there an easy way to DRY this up? It seems to be rather repetitive. validates_format_of :expiration_date, :with => /^[0-9]{4}[-][0-9]{2}[-][0-9]{2}$/ validates_format_of :activation_date, :with => /^[0-9]{4}[-][0-9]{2}[-][0-9]{2}$/ validates_format_of :some_other_date, :with =>
2010 Jun 09
4
health monitoring of replicated volume
Hello, Is there any reasonable way to monitor the health of replicated volume and sync it, if out of sync ? Regards,