Re: [rspec-users] testing framework in 44 lines of ruby

2011-06-12 Thread David Chelimsky
On Jun 12, 2011, at 12:52 PM, Patrick J. Collins wrote: >> What do you mean by "on target"? Are you asking if the implementations are >> the same, or similar? Or are you asking if attest meets the same goals as >> RSpec? > > More specifically, I meant the way he implements describe blocks and th

Re: [rspec-users] testing framework in 44 lines of ruby

2011-06-12 Thread Patrick J. Collins
> What do you mean by "on target"? Are you asking if the implementations are > the same, or similar? Or are you asking if attest meets the same goals as > RSpec? More specifically, I meant the way he implements describe blocks and the should method... It's difficult for me to tell from glancing t

Re: [rspec-users] testing framework in 44 lines of ruby

2011-06-12 Thread David Chelimsky
On Jun 12, 2011, at 11:26 AM, Patrick J. Collins wrote: > Hi everyone, > > I just came across this post and was wondering if this is on target with how > RSpec works under the hood? > > http://www.skorks.com/2011/02/a-unit-testing-framework-in-44-lines-of-ruby/ What do you mean by "on target"?

[rspec-users] testing framework in 44 lines of ruby

2011-06-12 Thread Patrick J. Collins
Hi everyone, I just came across this post and was wondering if this is on target with how RSpec works under the hood? http://www.skorks.com/2011/02/a-unit-testing-framework-in-44-lines-of-ruby/ Patrick J. Collins http://collinatorstudios.com ___ rspec

Re: [rspec-users] subdomain based namespacing makes RSpec incorrectly state that the route doesn't exist

2011-06-12 Thread David Chelimsky
On Jun 9, 2011, at 11:03 AM, Daniel wrote: > Hello, > > I'm doing namespace routing based on subdomain, rather than path, so > that http://admin.example.com/pages leads to app/controllers/admin/ > pages_controller.rb. Cucumber is following this fine, but RSpec is > complaining that the requested

Re: [rspec-users] Stub an AR Model Instance Method

2011-06-12 Thread David Chelimsky
On Jun 9, 2011, at 12:33 PM, Karl wrote: > Obviously, I'm missing something very simple, can someone please > explain how to stub an instance of an AR model method. > > This does not work: > @widget = Widget.first # Widget has an instance method called > 'next_seriel_number' > @widget.stub(:next

Re: [rspec-users] help with rspec

2011-06-12 Thread David Chelimsky
On Jun 12, 2011, at 2:25 AM, שלומי צדוק wrote: > Hi all, > My name is Shlomi Zadok - I am an old time PHP (mainly Drupal) developer and > I am doing my first application on Ruby on Rails ( I just love it!!) > I am trying to test my application with rspec and I am having problems. > > I have to

[rspec-users] help with rspec

2011-06-12 Thread שלומי צדוק
Hi all, My name is Shlomi Zadok - I am an old time PHP (mainly Drupal) developer and I am doing my first application on Ruby on Rails ( I just love it!!) I am trying to test my application with rspec and I am having problems. I have to admit that I rushed with the development and neglected the tes