Re: [rspec-users] Can't run specs after upgrading gems... get 0 tests, 0 assertions...

2009-12-08 Thread Nicholas Van Weerdenburg
On Tue, Sep 29, 2009 at 9:37 PM, ignu wrote: > > So after I updated all my gems, I started getting: > > /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/ > dependencies.rb:105:in `const_missing': uninitialized constant > Test::Unit::TestResult::TestResultFailureSupport (NameErro

Re: [rspec-users] rspec_scaffold and mocha

2009-05-10 Thread Nicholas Van Weerdenburg
On Thu, May 7, 2009 at 1:21 PM, jevado wrote: > Hi all, > > Sorry if this get's posted several times but I got a message that my > previous post wasn't allowed because I'm not a member. I think I am > now though. > > The problem I have is fairly simple. I have some plugins who use rspec > and moc

Re: [rspec-users] top posting and plain text

2009-05-06 Thread Nicholas Van Weerdenburg
Nick: How about On Wed, May 6, 2009 at 9:09 PM, Francis Hwang < s...@fhwang.net> wrote: > side posting How about both top and bottom posting? > as a > compromise? Francis Hwang > http://fhwang.net/ > > On May 6, 2009, at 8:46 PM, Be

Re: [rspec-users] DB transactions w/ RSpec

2009-05-06 Thread Nicholas Van Weerdenburg
wrote: > On Wed, May 6, 2009 at 9:47 AM, Nicholas Van Weerdenburg > wrote: > > As far as I can tell, RSpec simply uses inherited TestCase capabilities > for > > transactions, including use_transactional_fixtures (it's config setting > is > > simply passe

Re: [rspec-users] DB transactions w/ RSpec

2009-05-06 Thread Nicholas Van Weerdenburg
As far as I can tell, RSpec simply uses inherited TestCase capabilities for transactions, including use_transactional_fixtures (it's config setting is simply passed on) and likely uses_transaction. I'm guessing you can do something like: uses_transaction :create it "should save message" d

[rspec-users] Extending RSpec- Best Practices?

2009-05-06 Thread Nicholas Van Weerdenburg
Hi, I'm reading the RSpec book and it makes references to macros from shoulda and rspec_on_rail_on_crack, but doesn't integrate them, simply describing how to write your own macro. I see there is the "Remarkable" project as well. After some more googling, I can't make up my mind if I should use th

Re: [rspec-users] Partitioning Specs

2009-04-30 Thread Nicholas Van Weerdenburg
Sounds good. So I could start tagging now, and be forward compatible. Is there or will there be the equivalent of cucumber.yml for rspec? Thanks, Nick On Thu, Apr 30, 2009 at 10:53 AM, David Chelimsky wrote: > On Thu, Apr 30, 2009 at 9:33 AM, Nicholas Van Weerdenburg > wrote: > >

Re: [rspec-users] script/general rspec_*

2009-04-30 Thread Nicholas Van Weerdenburg
On Thu, Apr 30, 2009 at 9:24 AM, David Chelimsky wrote: > On Thu, Apr 30, 2009 at 8:19 AM, Nicholas Van Weerdenburg > wrote: > > I have started using rspec after generating much of my applications > models > > and controllers. Much of the code is plain vanilla scaffolding. &

Re: [rspec-users] submodule rspec and rspec-rails issues

2009-04-30 Thread Nicholas Van Weerdenburg
On Thu, Apr 30, 2009 at 3:34 PM, Amos King wrote: > So why am I required to install rspec as a frozen/system gem to work > with rails? I would be happy with that if the support for rails gems > was a little better. I'm stuck to the published gem at that point, or > I have to jump through hoops

Re: [rspec-users] Partitioning Specs

2009-04-30 Thread Nicholas Van Weerdenburg
I saw that a couple of days ago- very nice. Will that be added to RSpec? Also, I suppose I'd have to add tags to the framework myself unless they included it. Thanks, Nick On Thu, Apr 30, 2009 at 10:02 AM, Ben Lovell wrote: > > > On Thu, Apr 30, 2009 at 3:00 PM, Nicholas V

[rspec-users] Partitioning Specs

2009-04-30 Thread Nicholas Van Weerdenburg
Hi, I installed Restful Authentication and it placed a lot of specs and features in cucumber and rspec directories. Is there a way frameworks can partition there tests so that "rake spec" doesn't run all their tests? I've actually switched to authlogic because of this, but was curious. Thanks, N

Re: [rspec-users] shoud error

2009-04-30 Thread Nicholas Van Weerdenburg
That would be it. I got confused between @messenger (StringIO) in Cucumber and @messenger in RSpec (mock) in the RSpec book and though I was looking at a StringIO object. Thanks, Nick On Thu, Apr 30, 2009 at 8:59 AM, David Chelimsky wrote: > On Thu, Apr 30, 2009 at 7:51 AM, Nicholas

[rspec-users] script/general rspec_*

2009-04-30 Thread Nicholas Van Weerdenburg
I have started using rspec after generating much of my applications models and controllers. Much of the code is plain vanilla scaffolding. I accept that this is not very BDD, but I'm building a tool that required I do this. Is there a quick way to generate the test stubs- i.e. the equivalent of th

[rspec-users] shoud error

2009-04-30 Thread Nicholas Van Weerdenburg
Hi, I had some tests where I accidently used ".shoud" instead of ".should". There was no error, and all tests passed no matter what. Is the the correct behaviour or should there be an error if you mispell should? Thanks, Nick ___ rspec-users mailing lis

Re: [rspec-users] Current Evaluation of RSpec

2009-04-29 Thread Nicholas Van Weerdenburg
On Wed, Apr 29, 2009 at 12:47 PM, Rick DeNatale wrote: > On Wed, Apr 29, 2009 at 1:09 AM, Stephen Eley wrote: > > On Tue, Apr 28, 2009 at 10:57 PM, Nicholas Van Weerdenburg > > wrote: > >> Looking around outside of the book, reading reviews of RSpec on the web > &g

[rspec-users] Current Evaluation of RSpec

2009-04-28 Thread Nicholas Van Weerdenburg
I'm new to RSpec and reading the beta book. Looking around outside of the book, reading reviews of RSpec on the web seems tricky. Most reviews seem very dated, and as a result are misleading. Is this an accurate assessment? The big changes I've gleaned are contexts and macros and the rapid growth

[rspec-users] Timeout Errors- Rails 2.3.2 and Restful Authentication

2009-04-16 Thread Nicholas Van Weerdenburg
after_save' ... /Users/vanweerd/work2/innerplate/vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:201:in `unsuspend!' ./spec/models/user_spec.rb:267: Thanks, Nick -- Nicholas Van Weerdenburg ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] `add_example_group': undefined method `deprecate' for Spec:Module (NoMethodError)

2009-04-16 Thread Nicholas Van Weerdenburg
Thanks. I did that after finding the gem section on your site. Things look better now. Thanks, Nick On Wed, Apr 15, 2009 at 10:26 PM, David Chelimsky wrote: > On Wed, Apr 15, 2009 at 11:10 AM, vanweerd wrote: > > I'm the getting the following error when running rspec on a rails > > project. > >