Re: [rspec-users] [cucumber] webrat+selenium integration problem: record not saved to database?

2009-03-23 Thread Ben Mabey
Balint Erdi wrote: Hey, I am writing a simple cucumber feature for a Rails app to test if the webrat+selenium integration was successful: Scenario: Successful log in Given the user "pepito" exists # (1) And the user "pepito" is active When I go to the login page And I fill in "

Re: [rspec-users] Spec::Rails, "model.should have(1).error_on(:attribute)" passes when?

2009-03-23 Thread David Chelimsky
On Mon, Mar 23, 2009 at 6:10 PM, Bjorn Boulder wrote: > Spec::Rails people, > > I'm curious about: >  - model.should have(1).error_on(:attribute) > > displayed in the URL below: >  http://rspec.rubyforge.org/rspec-rails/1.2.2/classes/Spec/Rails/Extensions/ActiveRecord/InstanceMethods.html > > The

[rspec-users] Problems with gem rdoc rspec

2009-03-23 Thread Andrew Vit
My gems, e.g. rspec, gets installed in: /Library/Ruby/Gems/1.8/gems/rspec-1.2.2 (Note the extra /gems/ subdirectory) When I run "gem rdoc rspec" the output is empty and the Files section has errors: file not found -/Library/Ruby/Gems/1.8/rspec-1.2.2/rdoc/License.txt- file not found -/Library/Rub

[rspec-users] Spec::Rails, "model.should have(1).error_on(:attribute)" passes when?

2009-03-23 Thread Bjorn Boulder
Spec::Rails people, I'm curious about: - model.should have(1).error_on(:attribute) displayed in the URL below: http://rspec.rubyforge.org/rspec-rails/1.2.2/classes/Spec/Rails/Extensions/ActiveRecord/InstanceMethods.html The Rspec peepcode screencast suggests that model.should have(1).error_

[rspec-users] [cucumber] webrat+selenium integration problem: record not saved to database?

2009-03-23 Thread Balint Erdi
Hey, I am writing a simple cucumber feature for a Rails app to test if the webrat+selenium integration was successful: Scenario: Successful log in Given the user "pepito" exists # (1) And the user "pepito" is active When I go to the login page And I fill in "login" with "pepito"

Re: [rspec-users] Spec Server Error on rake spec:server:start

2009-03-23 Thread David Chelimsky
2009/3/23 Charles Grindel : > Hi, David, > > I forgot to generate rspec after the upgrade.  That fixed the problem. > Thanks for your help. Glad you got it working. Cheers, David > > Thanks, > Chuck > > On Mon, Mar 23, 2009 at 2:41 PM, David Chelimsky > wrote: >> >> 2009/3/23 Charles Grindel :

Re: [rspec-users] Spec Server Error on rake spec:server:start

2009-03-23 Thread Charles Grindel
Hi, David, I forgot to generate rspec after the upgrade. That fixed the problem. Thanks for your help. Thanks, Chuck On Mon, Mar 23, 2009 at 2:41 PM, David Chelimsky wrote: > 2009/3/23 Charles Grindel : > > Hi, > > > > I am following the directions for setting up autotest > > ( > http://wiki.g

Re: [rspec-users] Spec Server Error on rake spec:server:start

2009-03-23 Thread David Chelimsky
2009/3/23 Charles Grindel : > Hi, > > I am following the directions for setting up autotest > (http://wiki.github.com/dchelimsky/rspec/spec_server-autospec-nearly-pure-bdd-joy) > and experienced an error when I run rake spec:server:start. > > $ rake spec:server:start > (in /home/cgrindel/code/it/we

[rspec-users] Spec Server Error on rake spec:server:start

2009-03-23 Thread Charles Grindel
Hi, I am following the directions for setting up autotest ( http://wiki.github.com/dchelimsky/rspec/spec_server-autospec-nearly-pure-bdd-joy) and experienced an error when I run rake spec:server:start. $ rake spec:server:start (in /home/cgrindel/code/it/webapp) Starting up spec_server ... /home/c

[rspec-users] Running two instances of autospec

2009-03-23 Thread Andrew Premdas
Hi all, Got this silly idea that I'd like to run two instances of autospec - - one for features - the other for specs However I can't work out how to run just the features on their own - can anyone help? TIA Andrew ___ rspec-users mailing list rsp

Re: [rspec-users] Installing RSpec 1.2.2 and RSpec-Rails 1.2.2 As Plugins for Rails 2.0.5

2009-03-23 Thread David Chelimsky
2009/3/23 Charles Grindel : > Hi, > > I have read the Rspec-Rails page > (http://wiki.github.com/dchelimsky/rspec/rails) describing the different > installation procedures for RSpec and Rails.  Since I am running Rails > 2.0.5, I followed the instructions under "Install an RSpec release >= 1.1.4 >

Re: [rspec-users] Rspec weird behaviour

2009-03-23 Thread David Chelimsky
On Mon, Mar 23, 2009 at 9:45 AM, Scott Taylor wrote: > andrea wrote: >> >> Hi, >> I recently migrated from classic rails testing to Rspec, so I am >> pretty new to the framework and still learning. I am getting weird >> errors on an ActiveRecord model test, here is the basic class model >> definit

Re: [rspec-users] Rspec weird behaviour

2009-03-23 Thread Scott Taylor
andrea wrote: Hi, I recently migrated from classic rails testing to Rspec, so I am pretty new to the framework and still learning. I am getting weird errors on an ActiveRecord model test, here is the basic class model definition: class Size < ActiveRecord::Base has_many :quantities, :dependent

[rspec-users] Installing RSpec 1.2.2 and RSpec-Rails 1.2.2 As Plugins for Rails 2.0.5

2009-03-23 Thread Charles Grindel
Hi, I have read the Rspec-Rails page ( http://wiki.github.com/dchelimsky/rspec/rails) describing the different installation procedures for RSpec and Rails. Since I am running Rails 2.0.5, I followed the instructions under "Install an RSpec release >= 1.1.4 in Rails <= 2.1.0". In these instructio

Re: [rspec-users] Rspec weird behaviour

2009-03-23 Thread David Chelimsky
On Mon, Mar 23, 2009 at 4:41 AM, andrea wrote: > Hi, > I recently migrated from classic rails testing to Rspec, so I am > pretty new to the framework and still learning. I am getting weird > errors on an ActiveRecord model test, here is the basic class model > definition: > > class Size < ActiveRe

Re: [rspec-users] Rspec weird behaviour

2009-03-23 Thread andrea
On 23 Mar, 10:41, andrea wrote: [cut] BTW I am using rails 2.3.2, rspec and rails-spec version 1.2.0 Andrea ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Rspec weird behaviour

2009-03-23 Thread andrea
Hi, I recently migrated from classic rails testing to Rspec, so I am pretty new to the framework and still learning. I am getting weird errors on an ActiveRecord model test, here is the basic class model definition: class Size < ActiveRecord::Base has_many :quantities, :dependent => :destroy v