<  February 2010   >
Su Mo Tu We Th Fr Sa
    1  2  3  4  5  6
 7  8  9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28
01:11 SiaCo joined
01:21 jxie joined
01:34 jxie joined
01:57 FabianB joined
02:32 josephwilk joined
02:45 anathematic joined
02:52 mrchrisadams joined
03:09 jxie joined
03:18 jxie joined
03:34 jxie joined
03:38 svenfuchs joined
03:49 SiaCo joined
03:59 jxie joined
04:02 anathematic joined
04:25 joshk__ joined
04:38 jeanmartin joined
04:50 jxie joined
05:01 Scharrels left
05:04 jxie joined
05:16 ekidd joined
05:22 ashley_moran joined
05:49 jarib__ joined
06:01 jxie joined
06:10 alberto_pm joined
06:14 jxie joined
06:29 anteaya joined
06:31 jxie joined
06:32 ashley_m_ joined
06:58 svenfuchs joined
07:07 xanderbeedle joined
07:08 <xanderbeedle> Hi everyone, simple question - what's a good way to run an 'edit page' feature?
07:08 <xanderbeedle> I'm checking that I'm on the show page, and following the edit link
07:09 <xanderbeedle> but then I get involved with various IDs and things like that
07:09 <xanderbeedle> and I'm not sure how to integrate that in
07:13 <ashley_moran> xanderbeedle: what do you mean by "various ids"?
07:13 <xanderbeedle> Well, i can't just go to an edit page, to create a path that works I need to specify a page id
07:14 <xanderbeedle> and if that page is being created as a 'Given' step, can I pass back the ID from there?
07:14 <ashley_moran> xanderbeedle: i see what you mean now, there are various options
07:14 <xanderbeedle> Do you see what I mean? When dealing with specific items, the steps need to pass information around to each other
07:14 <xanderbeedle> or am I doing that wrong?
07:15 <ashley_moran> you can name the item in such a way that you can navigate back to it, eg "Given a blog post 'my post'"...
07:15 <ashley_moran> you could do "When I visit the post 'my post'"
07:15 <ashley_moran> and have the step click links
07:16 <ashley_moran> another way would be to scrape the url of the created resource and store it in an instance variable in a step
07:16 <ashley_moran> the Given step could eg store `@post_urls['my post'] = ...`
07:17 <ashley_moran> or store the id
07:17 <ashley_moran> or you could access the database and use routing to generate the route
07:17 <xanderbeedle> may try that
07:17 <xanderbeedle> http://pastie.org/813428
07:17 <xanderbeedle> is a pastie of my scenario, to explain with some code
07:18 <ashley_moran> i don't understand your comment there though
07:18 <ashley_moran> first you do...
07:18 <ashley_moran> When I follow "Edit this question"
07:18 <ashley_moran> but you say "This is where I am unsure how to navigate properly to the page?" after you've navigated there
07:18 <xanderbeedle> Not navigate sorry, but check that I am on that correct page
07:21 <ashley_moran> do you mean in the case where you want to extend it to "Then I should be on the question_edit page for question 'q1'" ?
07:21 <xanderbeedle> yea
07:21 <ashley_moran> i usually do that with content, rather than URLs, eg check for "Edit question" and "q1"
07:21 <xanderbeedle> fair enough, thanks
07:22 <xanderbeedle> just trying to work out the 'golden path'
07:22 <ashley_moran> np
07:27 paulca joined
07:32 madcowley joined
07:39 paulca joined
07:59 paulca joined
08:28 ekidd_ joined
09:02 svenfuchs joined
09:15 benlovell joined
09:21 jhenderson joined
09:40 ekidd joined
10:03 charleyb joined
10:19 benlovell joined
11:32 ashley_moran joined
11:38 paulca joined
11:40 ekidd joined
12:19 altogether joined
12:33 xanderbeedle joined
12:33 <xanderbeedle> Hi again
12:34 <xanderbeedle> While I understand exceptions should obviously be handled away from the user, how do you catch them in cucumber?
12:34 jschoolc_ joined
12:40 botanicus joined
12:42 <xanderbeedle> the problem seems to be a case of the exception being generated 1 step before my 'should raise_error' check
12:42 <xanderbeedle> is there a good way to handle this?
12:55 <dgs> can you catch it in the step it's being raised in ?
13:09 Lazygekko joined
13:09 Lazygekko left
13:20 Lazygekko_ joined
13:24 Lazygekko joined
13:24 Lazygekko left
13:28 dgs joined
13:43 jhchabran joined
13:51 Lazygekko joined
13:52 Lazygekko joined
14:06 paulca joined
14:08 mef_ joined
14:09 <mef_> any way I can run cucumber in some sort of verbose mode? it seems to be freezing while connecting to spork and I'm not sure why
14:10 <mef_> and I have to kill -9 it :/
14:12 rolfb joined
15:07 anathematic joined
15:13 svenfuchs joined
15:19 svenfuchs joined
15:21 svenfuchs joined
15:24 svenfuch_ joined
15:25 svenfuc__ joined
15:35 dgs joined
15:49 linoj joined
16:07 botanicus joined
16:51 anathematic_ joined
17:12 ednutjay joined
17:13 dgs left
17:20 paulca joined
18:16 urbanmonk joined
18:40 jxie joined
19:00 adamaig joined
19:10 paulca joined
19:10 hakunin joined
19:37 paulca joined
20:35 paulca joined
20:51 linoj joined
20:53 superguenter joined
21:07 superguenter joined
21:12 superguenter joined
21:18 raidfive joined
21:26 bildzeitung joined
21:52 ekidd joined
22:06 anathematic joined
22:15 urbanmonk joined
23:25 altogether joined