| 2010-02-23 08:46:09 utc | jmettraux | kenneth, tosch_le : which ruote_kit should I fork to add /errors ? |
| 2010-02-23 08:46:27 utc | kennethkalmer | afternoon |
| 2010-02-23 08:46:31 utc | tosch_le | hi! |
| 2010-02-23 08:46:33 utc | jmettraux | morning |
| 2010-02-23 08:46:35 utc | jmettraux | guys |
| 2010-02-23 08:46:59 utc | kennethkalmer | i'd say the safest is mine |
| 2010-02-23 08:47:01 utc | tosch_le | kenneth', i assume. it's the 'official' repo. |
| 2010-02-23 08:47:11 utc | jmettraux | ok |
| 2010-02-23 08:48:45 utc | tosch_le | kenneth: could you answer my pull request for http://github.com/tosch/ruote-kit/commit/1ea4d0bd8762035b7bebf6876bbcb8a48efa741c ? |
| 2010-02-23 08:48:49 utc | tosch_le | ;-) |
| 2010-02-23 08:48:54 utc | jmettraux | +1 |
| 2010-02-23 08:50:35 utc | jmettraux | just for fun, here is a model for the process_defs in the system I'm currently working on : http://gist.github.com/312011 |
| 2010-02-23 08:50:45 utc | jmettraux | its a model for Couch |
| 2010-02-23 08:51:36 utc | jmettraux | it grabs the name and revision directly from the tree (the AST of the process definition) |
| 2010-02-23 08:54:22 utc | jmettraux | it's |
| 2010-02-23 08:57:54 utc | kennethkalmer | i'll check out that pull request tosch_le, just putting out some fires |
| 2010-02-23 08:59:50 utc | jmettraux | maybe it's not the right moment |
| 2010-02-23 09:00:09 utc | jmettraux | but I'm looking at ruote-kit and I'd like to tell it to use ruote-couch |
| 2010-02-23 09:00:27 utc | jmettraux | ... |
| 2010-02-23 09:00:31 utc | kennethkalmer | i need to figure out the exact same thing |
| 2010-02-23 09:00:39 utc | jmettraux | I have an idea |
| 2010-02-23 09:00:50 utc | jmettraux | let me fork and request |
| 2010-02-23 09:01:01 utc | kennethkalmer | :) |
| 2010-02-23 09:08:52 utc | jmettraux | ruote-kit depends on json... yajl is so much better |
| 2010-02-23 09:09:11 utc | jmettraux | I wish rubygems had soft-deps |
| 2010-02-23 09:10:20 utc | tosch_le | +1 |
| 2010-02-23 09:14:08 utc | jmettraux | damn, I'm trying to run rspec, it wants ruby-debug which is not ruby-1.9.x ready :( |
| 2010-02-23 09:16:31 utc | tosch_le | there's a 19 port of ruby-debug somewhere |
| 2010-02-23 09:16:53 utc | jmettraux | ouch |
| 2010-02-23 09:17:04 utc | tosch_le | it's called ruby-debug19 |
| 2010-02-23 09:17:07 utc | jmettraux | I will switch to 1.8.7 for now |
| 2010-02-23 09:18:04 utc | tosch_le | http://wiki.github.com/mark-moseley/ruby-debug |
| 2010-02-23 09:18:41 utc | jmettraux | many thanks ! |
| 2010-02-23 09:30:39 utc | jmettraux | I don't like "RESTful BPM" anymore |
| 2010-02-23 09:30:50 utc | jmettraux | RESTful is hard and BPM is harder |
| 2010-02-23 09:40:34 utc | jmettraux | spec full green, great |
| 2010-02-23 10:37:21 utc | jmettraux | grrr, I'm getting the Spec::Example::NoDescriptionError |
| 2010-02-23 10:40:21 utc | jmettraux | @context collision :( |
| 2010-02-23 10:41:21 utc | jmettraux | tosch_le: sorry, how did you get around the rspec vs @context issue you faced ? |
| 2010-02-23 10:41:58 utc | tosch_le | http://github.com/tosch/ruote-kit/blob/master/spec/resources/workitems_spec.rb#L3 |
| 2010-02-23 10:42:40 utc | tosch_le | undefing context in spec_helper.rb didn't help, but in the example file itself it was successful |
| 2010-02-23 10:43:04 utc | jmettraux | works great ! many thanks :) |
| 2010-02-23 11:21:10 utc | jmettraux | my rspec-fu is too low |
| 2010-02-23 11:22:09 utc | tosch_le | mine too, just began reading the pragmatic programmers' rspec book |
| 2010-02-23 11:23:03 utc | jmettraux | :( I'm at the same stage as you |
| 2010-02-23 11:23:29 utc | jmettraux | I need to shuffle the spec_helper.rb, it starts an Engine for every spec |
| 2010-02-23 12:40:48 utc | jmettraux | kenneth: is there an easy way to neutralize the top level before(:each) in spec/spec_helper.rb ? |
| 2010-02-23 12:42:59 utc | tosch_le | i suppose you could skip requiring the spec_helper.rb in your spec file, but that won't be DRY, i suppose. |
| 2010-02-23 12:43:19 utc | jmettraux | and I would be forced to run my spec in isolation |
| 2010-02-23 12:44:38 utc | tosch_le | so the specs need to be refactored: running and stopping the engine should be done in helper methods which are called in each spec file explicitely. |
| 2010-02-23 12:44:50 utc | jmettraux | +1 |
| 2010-02-23 12:45:33 utc | tosch_le | or an EngineSpecHelper which defines the before and after callbacks and may be included in the specs |
| 2010-02-23 12:45:49 utc | jmettraux | I tried that but failed |
| 2010-02-23 12:45:51 utc | tosch_le | that will be the most dry variant, i suppose |
| 2010-02-23 12:45:53 utc | jmettraux | let me try fresh |
| 2010-02-23 12:52:06 utc | kennethkalmer | sorry for being late |
| 2010-02-23 12:52:18 utc | kennethkalmer | once the before(:each) is set, there is no going back afaik |
| 2010-02-23 12:52:42 utc | jmettraux | I'm going to go http://www.claytonlz.com/index.php/2009/03/rspec-shared-example-before-each-gotcha/ (it_should_behave_like) |
| 2010-02-23 12:57:27 utc | kennethkalmer | to gain better control over the shared before(:each) behavior ? |
| 2010-02-23 12:57:34 utc | kennethkalmer | looks like an interesting approach |
| 2010-02-23 12:57:57 utc | jmettraux | to avoid the global before(:each) |
| 2010-02-23 12:58:10 utc | jmettraux | when I want to test the configuration without running an engine |
| 2010-02-23 13:00:16 utc | tosch_le | thought about a custom ExampleGroup class which defines the callbacks (and one which doesn't do this). the first could be used as default, the other by |
| 2010-02-23 13:00:18 utc | tosch_le | descripe Foo, :type => :without_engine |
| 2010-02-23 13:00:57 utc | tosch_le | so there would be no need to change the other specs |
| 2010-02-23 13:00:57 utc | jmettraux | tosch_le: I looked at this approach but couldn't grasp it |
| 2010-02-23 13:01:20 utc | tosch_le | unfortunately, the rspec book is a bit short on that :-( |
| 2010-02-23 13:01:36 utc | jmettraux | and google as well |
| 2010-02-23 13:02:02 utc | jmettraux | the shared thing approach seems to work |
| 2010-02-23 13:06:45 utc | kennethkalmer | ExampleGroup's are tough to get right :/ glad the shared thing is working :) |
| 2010-02-23 13:07:27 utc | jmettraux | kennethkalmer: what is the right way to run specs ? |
| 2010-02-23 13:07:37 utc | jmettraux | I'm doing spec spec/ |
| 2010-02-23 13:07:38 utc | kennethkalmer | rake spec |
| 2010-02-23 13:07:43 utc | kennethkalmer | - or - |
| 2010-02-23 13:07:55 utc | kennethkalmer | spec -O spec/spec.opts spec/**/*_spec.rb |
| 2010-02-23 13:08:07 utc | kennethkalmer | - or - |
| 2010-02-23 13:08:21 utc | kennethkalmer | spec -O spec/spec.opts spec/resources/workitems_spec.rb |
| 2010-02-23 13:08:28 utc | kennethkalmer | so you're on track |
| 2010-02-23 13:09:05 utc | jmettraux | no such file to load -- rake/tasklib |
| 2010-02-23 13:09:11 utc | jmettraux | which gem provides it ? |
| 2010-02-23 13:10:03 utc | jmettraux | ACTION googles |
| 2010-02-23 13:10:25 utc | kennethkalmer | hmm |
| 2010-02-23 13:11:11 utc | jmettraux | require 'rake/tasklib' fixed that |
| 2010-02-23 13:11:46 utc | jmettraux | grr, I'm starting to hate rspec |
| 2010-02-23 13:12:09 utc | kennethkalmer | where were you getting that error ? |
| 2010-02-23 13:12:31 utc | jmettraux | when doing rake/spec |
| 2010-02-23 13:12:41 utc | kennethkalmer | on 1.9.1 ? |
| 2010-02-23 13:12:48 utc | jmettraux | 1.8.7 |
| 2010-02-23 13:12:52 utc | jmettraux | p249 iirc |
| 2010-02-23 13:13:11 utc | kennethkalmer | ah, was searching for that file in my 1.9.1 gem home and didn't get a match |
| 2010-02-23 13:14:11 utc | jmettraux | aaah |
| 2010-02-23 13:14:14 utc | jmettraux | ok |
| 2010-02-23 13:17:21 utc | jmettraux | kennethkalmer: what is stub_chain about ? |
| 2010-02-23 13:18:06 utc | kennethkalmer | rspec stubbing |
| 2010-02-23 13:18:09 utc | kennethkalmer | ACTION locating docs |
| 2010-02-23 13:18:55 utc | jmettraux | kenneth: it's OK, it's all green now |
| 2010-02-23 13:19:00 utc | jmettraux | no worries |
| 2010-02-23 13:19:03 utc | kennethkalmer | ok |
| 2010-02-23 13:26:07 utc | jmettraux | kennethkalmer, tosch_le: highly debatable but here is my stuff : http://github.com/jmettraux/ruote-kit/commits/master/ |
| 2010-02-23 13:28:27 utc | kennethkalmer | looks good to me |
| 2010-02-23 13:28:58 utc | jmettraux | 2 pull requests for you (1 Torsten + 1 John) then ;) |
| 2010-02-23 13:30:39 utc | jmettraux | thanks a lot for all the help ! |
| 2010-02-23 13:31:22 utc | jmettraux | good night ! |
| 2010-02-23 13:46:51 utc | tosch_le | just found a much more elegant solution for the "don't run the engine in every example" problem: the callbacks may be restricted to custom types |
| 2010-02-23 13:47:34 utc | tosch_le | config.before(:each, :type => :with_engine) do ... end |
| 2010-02-23 13:47:36 utc | tosch_le | describe 'foo', :type => :with_engine do ... end |
| 2010-02-23 14:02:35 utc | tosch_le | kenneth: i've pulled john's changes, so if you like to live an easy life, just pull from my repo... |
| 2010-02-23 14:02:45 utc | kennethkalmer | hehe :) |
| 2010-02-23 14:02:53 utc | kennethkalmer | are you happy with your workitem search ? |
| 2010-02-23 14:03:00 utc | kennethkalmer | then I'l just apply the forkqueue magic |
| 2010-02-23 14:05:25 utc | tosch_le | which workitem search? did i do something on that? |
| 2010-02-23 14:06:16 utc | kennethkalmer | your and anb_'s work |
| 2010-02-23 14:07:06 utc | tosch_le | there's still a spec missing for that, so i suppose we should wait on that. |
| 2010-02-23 14:07:27 utc | tosch_le | didn't test anb_'s implementation yet |
| 2010-02-23 14:13:49 utc | tosch_le | oups. specs failing here after pulling john's changes... |
| 2010-02-23 14:17:56 utc | anb_ | Hi all, sorry about the spec, got busy on other things but will continue on ruote soon |
| 2010-02-23 14:21:04 utc | tosch_le | no need to be sorry :-) |
| 2010-02-23 15:02:08 utc | anb_ | :) |
| 2010-02-23 15:11:22 utc | tosch_le | a, now i see why the specs are failing: john changes the RuoteKit.configuration in his new examples -- this breaks examples which need a running engine afterwards |
| 2010-02-23 15:11:57 utc | tosch_le | will add a RuoteKit.reset_configuration! method and call it after john's examples. |
| 2010-02-23 15:18:27 utc | tosch_le | [x] done |
| 2010-02-23 15:18:53 utc | tosch_le | applied the config.before(:each, :type => :with_engine) thing, too |