[rspec-users] Cucumber/RSpec for an existing Rails project - generate rspec models and controllers?

2009-04-25 Thread Lee Longmore
Hi, I would like to use Cucumber and RSpec for my existing Rails project. I am now reasonably comfortable with the use of these, having studied the RSpec Book and various online resources. I am however unsure about one thing... Given that I have several existing models and controllers in my c

[rspec-users] How To Drive Out AJAX Functionality in a Rails View

2009-05-12 Thread Lee Longmore
I am new to RSpec and have just started to drive out my first Rails view using a spec. I have used the The RSpec Book (beta) to do the basic stuff like testing for the presence of a field but I am unsure where to start for driving out some AJAX functionality. In the view, I will have a text fie

[rspec-users] HowTo Specify A Method is Called Within A Controller's Action

2009-05-15 Thread Lee Longmore
I am new to RSpec and would appreciate some pointers on how to specify the following for my Rails application... I have a controller called ContextsController and, within this, the usual 'create' method. The first line of this method should be: @member = logged_in_member where logged_in_memb

[rspec-users] When to stub_model?

2009-05-19 Thread Lee Longmore
I am trying to specify a controller with RSpec for the first time. I have been using mock_model to date but, given that the models are fully implemented, I am wondering if I should be using stub_model. Based on what I have read, I am struggling to understand the advantages that stub_model over