Re: [rspec-users] Confused about square bracket usage.

2008-08-10 Thread Steve Eley
On Mon, Aug 11, 2008 at 12:59 AM, Teedub <[EMAIL PROTECTED]> wrote: > To my best understanding, > [mock_page] would be an array containing mock_page. That almost makes > sense, buy why wouldn't the variable mock_page simply be an array like > @pages. What you say is completely correct. In the cod

[rspec-users] Confused about square bracket usage.

2008-08-10 Thread Teedub
I ran script/generate rspec_scaffold page title:string body:text and have been reading on the generated code in my spare time in an attempt to fully understand rspec. It mostly makes a lot of sense except for the square brackets in the snippet below. To my best understanding, [mock_page] would be a

Re: [rspec-users] First encounter with RSpec, please help

2008-08-10 Thread Jesse Crockett
Connection # == Schema Information # Schema version: 26 # # Table name: connections # # id :integer(11) not null, primary key # person_id :integer(11) # contact_id :integer(11) # status :integer(11) # accepted_at :datetime # created_at :datetime # updated_at :datetime

Re: [rspec-users] First encounter with RSpec, please help

2008-08-10 Thread David Chelimsky
On Sun, Aug 10, 2008 at 11:03 AM, Jesse Crockett <[EMAIL PROTECTED]> wrote: > Hello, I'm working on a feature of insoshi to limit daily connection > requests, using a boolean and integer value set by the admin. The > feature works fine, but causes 11 failures in `rake spec', not to > mention the t

[rspec-users] First encounter with RSpec, please help

2008-08-10 Thread Jesse Crockett
Hello, I'm working on a feature of insoshi to limit daily connection requests, using a boolean and integer value set by the admin. The feature works fine, but causes 11 failures in `rake spec', not to mention the two or three tests for the new variables yet to be written. Here is the existing con