search for: gilesbowkett

Displaying 12 results from an estimated 12 matches for "gilesbowkett".

2007 Jul 01
1
how many Mongrels?
...s 2GB of RAM and has to do a lot of work with RMagick, including generating and storing lots of images. My predecessors put all of the image storage on the filesystem, and I won''t be able to change that right away. Any & all help massively appreciated. -- Giles Bowkett Blog: http://gilesbowkett.blogspot.com Portfolio: http://www.gilesgoatboy.org
2008 Jan 17
5
unusual challenges speccing external software
...e the specs by making them more specific. (For instance, there are places where I check that a Generator subclass can do stuff, even though Generator itself isn''t fully specced.) I''m not quite sure though. -- Giles Bowkett Podcast: http://hollywoodgrit.blogspot.com Blog: http://gilesbowkett.blogspot.com Portfolio: http://www.gilesgoatboy.org Tumblelog: http://giles.tumblr.com
2008 Mar 01
5
rspec with continuations: very strange
...els backwards through time: http://www.vimeo.com/742590 This disturbs me immensely. If anyone can explain it, that would be cool. I think it''s an illusion brought about by how RSpec wraps the code it executes, and by the sheer weirdness of continuations. -- Giles Bowkett Blog: http://gilesbowkett.blogspot.com Portfolio: http://www.gilesgoatboy.org Tumblelog: http://giles.tumblr.com Podcast: http://hollywoodgrit.blogspot.com
2007 Dec 29
5
./script/story command
Below I''ve pasted a ./script/story command I''ve been using for about a week. It has three modes of operation: 1. ./script/story with no arguments will run all *.story files in the story path 2. ./script/story with a path or glob will run the specified stories 3. If input is passed in via STDIN, it runs that text as a story. This opens up story running via a simple interface
2008 Jan 04
7
best way to modify spec (the command-line tool)?
...to spec itself? Is there a single point of entry and exit for running individual specs that I can put the code around? It''s currently manually hacked onto each example group individually and it seems a bit untidy. -- Giles Bowkett Podcast: http://hollywoodgrit.blogspot.com Blog: http://gilesbowkett.blogspot.com Portfolio: http://www.gilesgoatboy.org Tumblelog: http://giles.tumblr.com
2008 Jan 11
2
guide to good mocking?
...;t have it clearly articulated. I need a way to translate that vague sense for other people without guiding them through the code line by line. Earlier today I caught a spec that took 50 seconds to run, which was just nuts. -- Giles Bowkett Podcast: http://hollywoodgrit.blogspot.com Blog: http://gilesbowkett.blogspot.com Portfolio: http://www.gilesgoatboy.org Tumblelog: http://giles.tumblr.com
2008 Jan 31
1
thoughtworks site down? / another tiny patch for Rails 2 compatibility
...ny more, but an ActiveSupport::Duration, which has a value attribute which is a time interval. I''m still having issues running it under Rails 2, but this fix gets the builder loop working with ActiveSupport 2.0.2. -- Giles Bowkett Podcast: http://hollywoodgrit.blogspot.com Blog: http://gilesbowkett.blogspot.com Portfolio: http://www.gilesgoatboy.org Tumblelog: http://giles.tumblr.com
2008 Jan 26
6
UI Integration with RSpec?
Hi all, Is there any integration with testing tools such as RSpec or Test::Unit planned? I see that the cruise task is run correctly, but the tests show up underneath the build log. Ideally I''d like them to show up the same way that they do in ''java'' CruiseControl, in their own section of tests. Will.
2008 Feb 01
0
non-pending spec returning pending
...t effect - but I''m finding the output somewhere between weird and incomprehensible. What''s going on? Is RSpec doing some initialization as well, so that my initialization monkey-patch screws with its head? -- Giles Bowkett Podcast: http://hollywoodgrit.blogspot.com Blog: http://gilesbowkett.blogspot.com Portfolio: http://www.gilesgoatboy.org Tumblelog: http://giles.tumblr.com
2008 Apr 29
4
Default values for belongs_to and has_one
There really doesn''t seem to be a *declarative* way to define a default value for belongs_to and has_one associations class Person < ActiveRecord::Base belongs_to :address end p = Person.new p.address.city = ''Atlantis'' # Bummer! Of course, there''s an easy way to avoid this class Person < ActiveRecord::Base belongs_to :address
2008 Jan 05
5
multi-app merb
Ezra, I love merb, especially because it''s keeping the things that Rails does well and improves on things that Rails hasn''t done so well. One of my biggest pain points with Rails has become multi-app integration. A lot of web sites consist of multiple apps (e.g. a core site, a forum, a blog/cms, etc.). Doing this sort of thing is very ugly and inefficient with the current
2007 Sep 16
12
rspec_todo -- spec''ing backwards
While the spirit of BDD is to spec first and code second, many of us have legacy code. Worse, some of us have legacy code without very good coverage. Recognizing that *I* have such code, I created a script that grinds through your .rb files and creates placeholder specs for each public method. While it is more sensible to spec behavior of code function than of individual methods, this