<    March 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 29 30 31
00:33 svenfuchs joined
00:46 philly-mac joined
00:47 <philly-mac> Hi, I am using cucumber with sinatra/capybara. I noticed that when I use it with rails there is a generator that produces a whole load of useful web steps for you. Is there such a generic thing to produce these steps for use with other frameworks, just to get you started?
00:59 qwerxy joined
01:30 benlovell joined
01:51 svenfuchs joined
01:53 SiaCo joined
02:23 danlucraft joined
02:28 qwerxy joined
02:30 ashley_moran joined
02:53 aslakhellesoy joined
02:56 robholland joined
02:56 robholland joined
03:14 joshkalderimis joined
03:24 <robholland> morning all
03:36 <aslakhellesoy> robholland: morning
03:36 jxie joined
03:40 josephwilk joined
03:48 mattwynne joined
04:06 alberto_pm joined
04:22 BobFunk joined
04:22 <BobFunk> hey
04:23 <BobFunk> having some problems with cucumber and rails 3
04:24 <BobFunk> getting an "uninitialized constant ActionDispatch::Integration::Session::Test"
04:24 <BobFunk> when trying to run the features
04:30 jschoolcraft joined
04:32 aslakhellesoy joined
04:32 <aslakhellesoy> BobFunk: did you use the generator to set up your project?
04:33 <BobFunk> yeah - script/rails g skeleton
04:33 <aslakhellesoy> can you gist a trace?
04:33 <BobFunk> sure
04:34 <BobFunk> http://gist.github.com/333830
04:35 <BobFunk> just had a coworker install the bundle and do the script/rails g skeleton on another laptop with the same result
04:35 <aslakhellesoy> BobFunk: I think maybe you need to add Test::Unit as a gem
04:35 <BobFunk> gonna try that
04:37 <BobFunk> ok -seems doing require 'test/unit/testcase' in the test environment seems to get us further
04:39 lmarburger joined
04:40 mattwynne joined
04:43 <aslakhellesoy> BobFunk: Do you think Rails should be doing that require in the file where you get the uninitialized constant error?
04:44 <aslakhellesoy> I think that would be a better fix TBH
04:44 <BobFunk> yeah - it does sound like rails should handle that dependency
04:45 <BobFunk> it's strange - it actually worked with jruby without the require 'test/unit/testcase'
04:45 <BobFunk> was when trying to run the features in c ruby that it started breaking
04:45 <BobFunk> anyway - now the features run in both jruby and ruby - but it seems like I'm running into a problem with sessions
04:46 <BobFunk> gonna make sure - but it seems like the session cookie is not being updated
04:47 <BobFunk> trying to get some facebook connect features to pass - and I can see from the test.log that the controller is setting the user_id in the session but after following the redirect it seems to be gone
04:48 <aslakhellesoy> BobFunk: it would be great if you sent rails a patch for this.
04:51 <BobFunk> first trying to replicate this session issue with something simpler than facebook connect
04:54 qwerxy joined
04:56 <aslakhellesoy> BobFunk: sounds like you're having to unrelated issues
04:58 <aslakhellesoy> s/to/two
05:07 benlovell joined
05:10 BobFunk joined
05:10 textarcana joined
05:15 tils joined
05:17 <BobFunk> yeah - seems unrelated
05:36 <BobFunk> got a patch ready for rails requiring 'test/unit/assertions' from action_dispatch/test/integration
05:36 antifuchs joined
05:36 <BobFunk> does lighthouse have any way to search for existing tickets beyond the tags?
05:37 <BobFunk> ahh - found it
05:37 <antifuchs> hi there. I'm trying to make a custom formatter for cucumber (0.6.2), but whenever I try to run my test suite with it, cucumber doesn't execute any steps; the formatter's methods are called with step.status = :undefined
05:37 <BobFunk> seems I had to create a profile to see it
05:37 <antifuchs> what's going on there?
05:39 <BobFunk> ok - seems a require is not the solution - it seems to be a bundler related problem in reality
05:39 <BobFunk> https://rails.lighthouseapp.com/projects/8994/tickets/4171-fresh-rails-3-app-cannot-run-performance-tests
05:39 <BobFunk> sounds like the same issue
05:41 <antifuchs> forget that, I found out what's wrong; the problem is with ci_reporter, not with my formatter implementation.
05:44 textarcana_ joined
05:49 anteaya joined
05:54 <BobFunk> ok - need someone to review my one line patch: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4190-uninitialized-constant-actiondispatchintegrationsessiontest
06:09 matthewford joined
06:18 markj9 joined
06:35 malesca_ joined
06:36 <malesca_> Submitting a GET form with Cucumber, the submitted params don't actually seem to be in the URL. So with request.request_uri and request.path_parameters, I don't see them. But they are in "params". So probably GETs are faked? Breaks some stuff.
06:59 <robholland> Anyone else annoyed by the current cucuber textmate bundle which causes textmate to think it's not saved features?
07:29 tildeequals joined
07:33 lmarburger joined
07:33 mrkurt joined
07:33 <danlucraft> robholland: my coworker is very annoyed by that
07:34 jamuraa joined
07:34 <robholland> Glad it's not just me
07:34 <robholland> Ah, there is an open issue
07:40 BobFunk joined
07:47 mjw2 joined
07:53 tomtt joined
07:58 jxie joined
08:06 antifuchs left
08:12 FabianB_ joined
08:17 <BobFunk> considering using http://github.com/roman/rots for and openid feature
08:17 <BobFunk> is there a good way with anotations or something to skip some tests by default
08:18 <BobFunk> the server has to be running for these tests to work - and it can be a bit annoying if it has to start up when running unrelated features
08:19 <oc> BobFunk: tags are OK
08:20 <oc> http://wiki.github.com/aslakhellesoy/cucumber/tags
08:21 <BobFunk> looks like it - are there any way to tell cucumber to always skip a specific tag unless you specify it at the command line?
08:21 <robholland> Yes, using profiles
08:21 <oc> in your profile
08:21 <oc> http://wiki.github.com/aslakhellesoy/cucumber/cucumberyml
08:21 <BobFunk> ahh - cool
08:21 <BobFunk> seems like just what I need :)
08:22 <BobFunk> thanks
08:22 <oc> i.e. slow_integration_tests: --tags @slow --tags @integration
08:32 msassak joined
08:47 altogether joined
08:48 qwerxy joined
08:48 BobFunk joined
08:53 cap10morgan joined
08:54 <cap10morgan> I tried running the profile format listed here http://wiki.github.com/aslakhellesoy/cucumber/cucumberyml and here http://stackoverflow.com/questions/1265659/profiling-a-cucumber-test-ruby-rails (as described by Aslak) but in the current stable version 0.6.3 it is crapping out. Was this feature removed?
08:57 <msassak> cap10morgan those links describe different things--are you trying to run cucumber with profiles, or are you trying to profile your cucumber tests?
08:58 <cap10morgan> msassak: I'm just trying to get a profile report on my slow running features
09:00 <msassak> ahh okay
09:00 anteaya joined
09:01 mattwynne joined
09:01 <msassak> i'm not sure if there is a built-in profiler, actually
09:19 <oc> aslak will probably be online in 5 minutes
09:27 <oc> firewall
09:30 ghnatiuk joined
09:31 bcardarella_ joined
09:36 mfaeh joined
09:37 <mfaeh> Which engine is the recommended one for testing js with cucumber?
09:38 <mfaeh> Selenium, other?
09:39 <msassak> mfaeh there isn't anything official
09:40 <mfaeh> Ok, which works best from your experience?
09:40 <msassak> mfaeh well i have had luck with capybara and culerity, but ymmv
09:41 <mfaeh> Ok, thanks we'll try that.
09:42 malesca_ left
09:45 linoj joined
09:49 mattwynne joined
09:58 mabes joined
10:00 mjw2 joined
10:07 markj9_ joined
10:17 hakunin joined
10:23 Sid_ joined
10:23 mjw2 joined
10:27 svenfuchs joined
10:27 <Sid_> Hi there, my step definition files are not being found by cucumber on my work iMac but they work normally on my macbook which suggests some soft of problem outside of the application. Has anyone here had a similar problem?
10:29 <altogether> Sid_: cucumber version same?
10:31 <Sid_> no, iMac has cucumber rails 0.3.0. the macbook has 0.2.4
10:31 <Sid_> I'll try the older version of cukes-rails
10:36 ghnatiuk left
10:44 lmarburger joined
10:54 <BobFunk> anyway to get capybara to not follow redirects?
10:55 <BobFunk> testing openid authentication and when my servers sends the redirect to the openid server Capybara tries to follow it but while treating the absolute url as a relative url
11:04 mattwynne joined
11:08 ghnatiuk joined
11:14 dastels joined
11:20 miwillhite joined
11:21 miwillhite left
11:21 miwillhite joined
11:21 <miwillhite> I'm getting the following error when I try to run my features…not sure if I have everything setup correctly: super: no superclass method `requirement'
11:21 <miwillhite> I created a cucumber entry in my database.yml
11:22 <miwillhite> <- brand new to cucumber
11:22 <miwillhite> Any ideas?
11:50 svenfuchs joined
11:53 hakunin joined
11:56 agib joined
11:57 agib joined
11:58 agib joined
12:22 mikepence joined
12:33 markj9_ joined
12:37 SiaCo joined
12:48 fields__ joined
12:48 <fields__> what's the right way to call a rake task from inside a cucumber test?
12:49 <fields__> (I'm testing the task itself)
12:53 bcardarella joined
13:12 railsraider joined
13:14 tildeequals joined
13:15 ghnatiuk left
13:18 hakunin joined
13:23 <bcardarella> Why does Cucumber print green for when Scenario Outlines fail?
13:23 <bcardarella> the dots are green
13:30 BobFunk joined
13:39 hakunin joined
13:40 hakunin joined
13:42 josephwilk joined
13:52 has_rb joined
14:14 robholland joined
14:14 robholland joined
14:24 BobFunk joined
14:36 has_rb_ joined
14:38 kevwil joined
15:00 aslakhellesoy joined
15:00 <aslakhellesoy> evening
15:04 aslakhellesoy joined
15:06 <aslakhellesoy> robholland: re TextMate - see the tracker
15:06 <aslakhellesoy> leaving files unsaved is annoying - and fixed
15:07 <aslakhellesoy> mabes: hi mate
15:07 <aslakhellesoy> saw your comment about Scenario Outline in the TM bundle
15:07 <robholland> aslakhellesoy: I saw, it's fixed now
15:07 <aslakhellesoy> It's still highlighted - I just simplified how
15:08 <aslakhellesoy> the TM bundle can think of Scenario and Scenario Outline as the same thing - it just needs to know all the keywords, which it does now.
15:08 aslakhellesoy_ joined
15:09 <aslakhellesoy> bad connection here.
15:09 <mabes> aslakhellesoy: okay- good to know. thanks
15:09 <aslakhellesoy> thanks for merging
15:10 aslakhellesoy_ joined
15:10 <mabes> yeah, I just merged some stuff in from Tim as well.. the shortcut for "align table cells" is different. Apparently the one that we were using was conflicting with a global OSx shortcut
15:10 <aslakhellesoy> mabes: Still want me to help find a heir
15:11 <mabes> aslakhellesoy: sure- I could post to the list if you want me to
15:11 <aslakhellesoy> Sure, or I can do it.
15:11 <mabes> Yeah, I'll do it now
15:12 aslakhellesoy joined
15:12 <aslakhellesoy> In order to make someone take it over you need carrots and whips :-)
15:12 <aslakhellesoy> carrot = you'll be a hero
15:12 <aslakhellesoy> whip = if you don't the thing will die
15:13 aslakhellesoy_ joined
15:13 <aslakhellesoy> i'm still in the (slow) process of redoing the website, and my goal is to give good visiility to core tools and their maintainers.
15:13 <aslakhellesoy> (that's the carrot)
15:14 <mabes> ahh, I see
15:16 jhenderson joined
15:16 aslakhellesoy joined
15:17 <mabes> aslakhellesoy: stay or leave- make up your mind! :)
15:17 <aslakhellesoy> mabes: i'm in a quiet pub - i'll stay. they have good beer.
15:17 <aslakhellesoy> and a naive neighbour it seems
15:18 <mabes> heh
15:18 aslakhellesoy_ joined
15:20 aslakhellesoy_ joined
15:21 has_rb joined
15:22 aslakhellesoy joined
15:23 aslakhellesoy_ joined
15:23 msassak left
15:25 aslakhellesoy_ joined
15:26 aslakhellesoy_ joined
15:27 aslakhellesoy_ joined
15:28 aslakhellesoy_ joined
15:30 aslakhellesoy_ joined
15:33 aslakhellesoy_ joined
15:35 aslakhellesoy joined
15:36 aslakhellesoy_ joined
15:39 aslakhellesoy_ joined
15:39 qwerxy joined
15:40 aslakhellesoy joined
15:47 beilabs_ joined
15:52 aslakhellesoy joined
15:58 beilabs_ joined
16:02 aslakhellesoy_ joined
16:04 aslakhellesoy_ joined
16:05 GitHub199 joined
16:05 <GitHub199> cucumber: 07treetop-behaves_like_gherkin 03aslakhellesoy * f4c7640 (3 files in 2 dirs): I made most things lazy, so we can plug in a treetop gherkin builder (but i broke one feature - not sure how to fix that). good enough for now. Jeeez this AST is crufty as hell - can't wait to get rid of this shit. - http://bit.ly/bHOOiF
16:05 GitHub199 left
16:07 <josephwilk> Awesomeness!
16:09 werdnativ joined
16:11 aslakhellesoy joined
16:12 aslakhellesoy_ joined
16:18 donaldball joined
16:19 aslakhellesoy joined
16:22 BobFunk joined
16:22 mattwynne joined
16:27 <mattwynne> aslakhellesoy: you working gherkin into the old AST?
16:28 <aslakhellesoy> mattwynne: yes
16:28 <mattwynne> how come? have you given up on the gherkin AST as too big a step?
16:28 <aslakhellesoy> we were biting over too much on the gherkin branch
16:28 <mattwynne> good call
16:29 <aslakhellesoy> so i'm making treetop behave like the gherkin parser
16:29 <aslakhellesoy> then dropping it in will be fairly simple
16:30 <aslakhellesoy> we'll still have the old crufty ast, but it lets us do one thing at a time and reduce the number of moving parts
16:30 <mattwynne> good good good
16:30 <aslakhellesoy> the ast is shit!
16:30 <aslakhellesoy> references back and forth and ugly ifs all over the place
16:30 <josephwilk> I liked that commit comment :)
16:31 <aslakhellesoy> that's what you get when you take patches from 200 people i guess :-)
16:31 <aslakhellesoy> josephwilk: hehe. not quite there yet, but not too far either.
16:31 rmccuaig joined
16:32 <aslakhellesoy> it _feels_ achievable at least
16:32 <mattwynne> it will be much easier to kill it slowly though. that big step into the gherkin AST was scary.
16:32 <mattwynne> right
16:32 <mattwynne> and the old formatters will still work
16:32 <mattwynne> phew
16:33 <aslakhellesoy> take a look at the html formatter
16:33 <aslakhellesoy> i must have been asleep when i merged in that code.
16:34 <aslakhellesoy> or some other kind of inconsciousness
16:34 <mattwynne> ha
16:35 <mattwynne> yeah we can make it much easier to write formatters with what we were doing with the Gherkin AST
16:35 <mattwynne> but one step at a time, eh?
16:35 textarcana joined
16:35 <mattwynne> in a week or two I'll be free to pair on this from time to time
16:35 <aslakhellesoy> mattwynne: but we also have another big fish to fry wink wink
16:35 <mattwynne> right now I am up to my elbows in painting and decorating
16:36 <mattwynne> wink wink
16:36 imajes joined
16:36 svenfuchs joined
16:37 <aslakhellesoy> got a rolling rr yet?
16:37 <josephwilk> Hows Scotland treating you mattwynne?
16:37 <mattwynne> josephwilk: it's lovely up here
16:37 <mattwynne> little bit of snow on the hills around us
16:37 <mattwynne> our builder went skiing in Aviemore at the weekend
16:37 <mattwynne> the central heating is on
16:38 <mattwynne> the drains will get connected tomorrow I hope
16:38 <josephwilk> Good stuff!
16:38 <aslakhellesoy> sounds great matt
16:38 <mattwynne> aslakhellesoy: I intend to hold onto my English accent. But I'm coming to terms with the fact that my son will sound like a Scotsman
16:39 <robholland> night all
16:39 <aslakhellesoy> night robholland
16:39 <josephwilk> Night robholland
16:40 <mattwynne> #cucumber: like the waltons
16:40 <aslakhellesoy> mattwynne: we still need a scottish gherkin translation
16:40 <josephwilk> We could present it in a lightning talk at Scotland Ruby conf!
16:43 <mattwynne> Hoots mon: I am logged into my account
16:55 <aslakhellesoy> by folks
16:55 <aslakhellesoy> bye!
17:02 rgoytacaz joined
17:02 <rgoytacaz> Hey guys
17:02 <rgoytacaz> I just updated cucumber, through gem update
17:02 <rgoytacaz> it installed cucumber 3.0(previous was 2.4)
17:03 <rgoytacaz> now when I do cucumber from my rails app
17:03 <rgoytacaz> it just says faiFailing Scenarios:
17:03 <rgoytacaz> cucumber features/manage_stores.feature:5 # Scenario: Display Store List
17:03 <rgoytacaz> cucumber features/manage_stores.feature:13 # Scenario: Create a valid Store
17:03 <rgoytacaz> was working before.
17:03 <rgoytacaz> how do I trace this?
17:14 <rgoytacaz> ?!
17:16 <mattwynne> rgoytacaz: can you copy / paste the output into a gist?
17:22 markj9 joined
17:27 qwerxy joined
17:30 <rgoytacaz> out is just that
17:30 <rgoytacaz> output*
17:30 <rgoytacaz> its all it says
17:31 <rgoytacaz> no other error messages...
17:31 <rgoytacaz> thats why I'm here =/
17:31 <rgoytacaz> http://www.pastie.org/873004
17:33 <rgoytacaz> is there some option that I could use to trace the error?
17:36 <mattwynne> rgoytacaz: --backtrace will give you a full stack trace
17:36 yak_ joined
17:37 <yak_> Hi, I am having trouble getting cucumber to run tests, can someone help me?
17:37 <rgoytacaz> ah thx :)
17:37 <mattwynne> rgoytacaz: try the pretty formatter too - it looks like you're using the progress one at the moment, yes?
17:38 <rgoytacaz> mattwynne: I'm just typing cucumber
17:38 <rgoytacaz> never used any options.
17:38 <mattwynne> rgoytacaz: right. try cucumber --backtrace -f pretty
17:39 donaldball joined
17:40 <rgoytacaz> K,problem was that the db had been dropped..
17:40 markj9 joined
17:40 <rgoytacaz> thx guys =) noob stuf
17:40 <yak_> I'm trying to run tests but currently seeing "no such file to load -- test/ (MissingSourceFile)"
17:41 <yak_> With cucumber 6.3, rails 2.3.4
17:41 <rgoytacaz> How do you guys deal with increasing validations on models after there are a number of tests on that model already?
17:41 <rgoytacaz> that will break this tests
17:41 <rgoytacaz> factories?
17:44 <mattwynne> rgoytacaz: you're talking unit tests, right?
17:44 <mattwynne> I usually get them to use the same method to create a valid object, then cripple it for the specific test
17:44 <mattwynne> user = create_valid_user
17:44 <mattwynne> user.username = ''
17:45 <mattwynne> user.should_not be_valid
17:45 <mattwynne> so then if the validation rules change, I just have to change the implementation of create_valid_user
17:45 <mattwynne> works most of the time
17:45 <yak_> Does anyone know what could be causing "no such file to load -- test/ (MissingSourceFile)"?
17:48 <yak_> Ive tried uninstalling and reinstalling various gems with no luck
17:51 <mattwynne> yak_: tried --backtrace to see what's calling it?
17:52 <yak_> no such file to load -- test/ (MissingSourceFile) /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require' /Library/Ruby/Gems/1.8/gems/polyglot-0.3.0/lib/polyglot.rb:65:in `require'....
17:52 <yak_> theres more, want it all?
17:52 agile joined
17:54 <mattwynne> yak_: I was hoping that would allow you to figure it out for yourself :)
17:54 <mattwynne> you could paste it into a gist though if you like
17:54 <yak_> actually this was due it looks like to a line in the rails/world.rb file, which id found somewhere b/c it was complaining it didnt exist
17:55 <yak_> Now I am hanging on undefined method `allow_rescue=' for ActionController::Base:Class (NoMethodError) /Users/yakovrabinovich/Starstreet/starstreet/features/support/env.rb:34 /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require' /Library/Ruby/Gems/1.8/gems/polyglot-0.3.0/lib/polyglot.rb:65:in `require'
17:55 <mattwynne> yak_: http://gist.github.com
17:57 <yak_> Looks like I got it working by commenting out a line in world.rb and ActionController::Base.allow_rescue = false in env.rb... is this ok?
17:59 <mattwynne> yak_: good. not sure why allow_rescue would give you an undefined method. Did they move it in a rails upgrade maybe?
17:59 <mattwynne> gtg
17:59 <mattwynne> night all
18:00 yak_ left
18:10 hakunin joined
18:17 mabes joined
18:19 alberto_pm joined
18:26 mabes joined
18:30 textarcana joined
18:51 donaldball joined
18:53 svenfuchs joined
18:53 <textarcana> /join #org-mode
18:53 <textarcana> oops
18:54 lmarburger joined
18:56 miwillhite left
19:06 mabes joined
19:11 Kero joined
19:19 donaldball joined
19:19 RurouniJones joined
19:24 imajes joined
19:26 linoj joined
19:29 donaldball joined
19:44 altogether joined
19:51 linoj joined
19:52 linoj joined
19:53 linoj joined
19:55 linoj joined
20:15 tildeequals joined
20:26 linoj joined
20:29 charleyb joined
20:33 dastels joined
21:00 donaldball joined
21:15 mabes joined
21:23 dbii_ joined
21:23 murilass1 joined
21:23 hakunin joined
21:31 railsraider joined
21:31 charleyb joined
21:32 yugui_zzz joined
21:33 Cynope joined
21:56 donaldball joined
22:02 mabes joined
22:25 railsraider joined
22:45 mikepence joined
23:15 mikepence joined
23:16 SiaCo joined
23:41 bdimcheff joined