[rspec-users] Tests for my gem cannot find classes in gems lib directory ..

2009-04-21 Thread Anthony Broad-Crawford
I am writing a gem and using RSpec to drive my development. However, whenever I describe a class within the gems lib I get an uninitialized constant error. I am placing my folder structure, spec.rake and first spec below. I feel I must be missing something obvious. Additionally, I did o

Re: [rspec-users] Autotest quits when code has errors

2008-07-28 Thread Anthony Broad-Crawford
Try rspactor. I have been using since the author pinged this list several months ago. No complaints thus far. To your point, it doesn't bomb when there is an error. Anthony Broad-Crawford On Jul 28, 2008, at 7:19 PM, Mark Wilden wrote: On Mon, Jul 28, 2008 at 3:10 PM, Evan Dorn &l

Re: [rspec-users] Is BDD with RSpec cheaper?

2008-07-07 Thread Anthony Broad-Crawford
test quicker, as you have that rich suite of tests to support development and testing efforts. Just my $0.02. Anthony Broad-Crawford On Jul 7, 2008, at 2:25 PM, yitzhakbg wrote: This might be a loaded question on this forum, but here goes: Just had a discussion with a prospective employ

[rspec-users] mock_model

2008-04-10 Thread Anthony Broad-Crawford
sword) Why doesn't mock model interrogate the attributes and generate these mocks for me? Thanks for taking the time to answer. Anthony Broad-Crawford ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/list

Re: [rspec-users] spec'ing models

2008-03-31 Thread Anthony Broad-Crawford
rofile.rb" end We like this as we are only testing the code we write and not testing ActiveRecord. If anyone has a better approach I know we would be interested in learning about it. Anthony Broad-Crawford ___ rspec-users mailing list rspec

Re: [rspec-users] spec'ing models

2008-03-31 Thread Anthony Broad-Crawford
load "profile.rb" end end Anthony Broad-Crawford On Mar 31, 2008, at 8:21 PM, Tim Haines wrote: Hi there, A couple of complete newb questions here. Should I be spec'ing the existence of attributes on models? While reading through the docs and googlin

Re: [rspec-users] Matchers tutorial ...

2008-03-03 Thread Anthony Broad-Crawford
thank you! On Mar 3, 2008, at 10:46 PM, David Chelimsky wrote: > On Mon, Mar 3, 2008 at 9:42 PM, Anthony Broad-Crawford > <[EMAIL PROTECTED]> wrote: >> I am looking for a good a - z matchers tutorial . Anyone got a url >> for one? > > There

[rspec-users] Matchers tutorial ...

2008-03-03 Thread Anthony Broad-Crawford
I am looking for a good a - z matchers tutorial . Anyone got a url for one? Thanks Anthony Broad-Crawford ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Rspec and plugins

2008-03-03 Thread Anthony Broad-Crawford
ady (although google didn't yield anything noteworthy). Thanks, Anthony Broad-Crawford ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Newbie question ...

2008-02-21 Thread Anthony Broad-Crawford
yes, thank you very much! On Feb 21, 2008, at 5:23 PM, [EMAIL PROTECTED] wrote: > On Feb 21, 10:40 am, Anthony Broad-Crawford [EMAIL PROTECTED]> wrote: >> I am testing an action on a controller and cannot seem to find the >> syntax to stub a method call off of the contr

[rspec-users] Newbie question ...

2008-02-21 Thread Anthony Broad-Crawford
I am testing an action on a controller and cannot seem to find the syntax to stub a method call off of the controller I am testing. pseudo code class SomeController < < ApplicationController def some_action stuff stuff stuff