search for: bkeepers

Displaying 16 results from an estimated 16 matches for "bkeepers".

Did you mean: keepers
2007 May 21
4
Spec''ing redirect with arbitrary parameters
I''ve got the following expectation: response.should redirect_to(:action => "new", :video_id => "1", :process_id => "2", :origin_id => "3") that fails with this error message: expected redirect to {:video_id=>"1", :process_id=>"2", :origin_id=>"3", :action=>"new"}, got redirect to
2006 Nov 21
6
Spec Naming (was: Rspec Brown Bag)
Thanks for posting your specdoc, Brandon -- they''re a great example. On 11/21/06, Brandon Keepers <bkeepers at gmail.com> wrote: > > A user purchasing items > - should create an order > - should add to the user''s orders > - should create line items > - should set line item amount to the item''s price > - should set line item amount to 0 if item does not have a pr...
2006 Dec 06
1
shared hosting for an ISP
A hosting company has contacted me and is interested in providing Ruby on Rails hosting for their customers. They provide both dedicated and shared hosting. I know there are a lot of shared hosts that support Rails, but most of them (that I''ve seen) are using mod_fastcgi, or a similar setup. I''m curious what people think about accomplishing this with mongrel with
2007 Sep 24
3
rcov including ruby lib
When I run spec:rcov on my continuous integration server, the rcov report is including many other libraries in the report, including some from standard lib and gems. Has anyone else had this problem or have any ideas for how to limit it just to coverage of code in app/ and lib/? Thanks, Brandon -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig
2007 Oct 10
9
Rspec Textmate bundle errors
Hello all, Having a problem with the Rspec textmate bundle and having quizzed the guys in #textmate to no success about the errors, I''ve been suggested to try you guys! When I run the "Run Behaviour Description" command, I get the following errors: /Users/alastair/Library/Application Support/TextMate/Bundles/ RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:34:in
2007 Oct 18
4
Mocking models provided in Rails plugins
Hey folks, How do I mock a model that is given to me by a Rails plugin? I''m trying to mock Session from the restful_authentication plugin but I get a number of errors telling me RSpec doesn''t recognize Session. NameError in ''SessionsController handling GET /sessions/new should be successful'' uninitialized constant Session An example of my usage:
2007 Jun 08
4
Still recommend the plugins over the gems?
> We strongly recommend you install RSpec and Spec::Rails as plugins > (as opposed to relying on an RSpec gem). See special instructions > below if you want to install the HEAD of the trunk, or an older > version. (from http://rspec.rubyforge.org/documentation/rails/install.html) Is this still the case? Why? Is the rspec_on_rails available in gem form? Does rspec_generator
2006 Nov 21
5
Specification Reuse to avoid Combinatorial Explosions
Hello, While reading Dan North''s BDD tutorial <http://dannorth.net/introducing-bdd>, I tried to implement his ATM example as spec stubs. When I first implemented it creating a context for each of his scenarios, I noticed that there is duplication and a combinatorial explosion of the specs. I attached the full files to this email. For brevity, I will use scenario 1 in the body of
2007 Feb 02
7
Coming Soon...
Dear spec''ers, As many of you already know, we''re gearing up for a pretty big 0.8 release of RSpec in the next couple of weeks. I''m writing in advance because I want to give you a heads up about upcoming changes and how they may impact your existing specs. Two important things to note first: 1. We will provide a translator that you''ll be able to use to
2007 Mar 29
21
a better "should have valid associations"
This is pretty much the same as last time around, if you recall. Thanks to Wilson for converting to the new form. I''ve added a few lines. Basically, it iterates over your model associations and does two things. - First, just try to call the association. Usually fixes speeling erors or other such silliness. - Second, try to find a record with an :include on the association. This
2006 Nov 21
10
Rspec Brown Bag
Hello, I''m scheduled to give a rspec brown bag this Wednesday (11/22) for my company (Pivotal Computer Systems, http://www.pivotalsf.com). I did see Dave Astel''s talk as well as several of my coworkers. The developers at my workplace are experienced Agile developers. What would be some good things to focus on for this brown bag? Are there slides to presentations that would be
2007 Jun 28
23
DRYing link_to with a symbol
Hi, I just put in a patch that allows you to DRY up this: <%= link_to @company.name, @company %> to this: <%= link_to :name, @company %> The symbol indicates the method to be called on the object passed in the link_to options. http://dev.rubyonrails.org/ticket/8789 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2006 May 07
0
application plugin architecture
I am interested in adding a plugin architecture to the rails app I am writing, and I was wondering if anyone had any good ideas of how to implement this, or pointers to projects that have already done this. "plugin" is obviously a popular word in the rails community, so searching isn''t much help. The basic requirements are that the app plugins should be able to
2007 Jun 20
1
RSpec getting too intimate?
I have a new blog post about some thoughts that I''ve had as I''ve been using rspec lately. I would love to hear your thoughts: http://opensoul.org/2007/6/20/rspec-is-getting-too-intimate-with- my-code Brandon
2006 Nov 08
0
running 0.6.4 and 0.7.0 side-by-side
For those trying to move projects to 0.7.0, but still using 0.6.4, RubyGems supports this arcane syntax for the bin stubs that allow you to specify a gem version: spec _0.6.4_ /path/to/your/specs And for the ruby on rails plugin, you can make "rake spec" work by add the following two lines to the top of tasks/rspec.rake file: require ''rubygems'' require_gem
2007 Nov 07
0
#7334: FIXTURES_DIR for db:fixtures:load
I added another patch for #7334 that adds a FIXTURES_DIR option to the db:fixtures:load task. This is really helpful for those using rspec. It also adds a db:fixtures:dump task. These two tasks in combination also provide a great way to backup and restore data. Please add some +1''s to the ticket or give constructive criticism. Thanks, Brandon