Questions tagged [rspec-stories]

A Cucumber-like story runner based on RSpec. Deprecated by its author, use Cucumber instead.

rspec-stories was a runner for RSpec based on the concept of "stories". Nowadays it has been superseded by Cucumber.

The code is still available at https://github.com/dchelimsky/rspec-stories.

4 questions
136
votes
6 answers

RSpec vs Cucumber (RSpec stories)

When should I use specs for Rails application and when Cucumber (former rspec-stories)? I know how both work and actively use specs, of course. But it still feels weird to use Cucumber. My current view on this, is that it's convenient to use…
orion3
  • 9,797
  • 14
  • 67
  • 93
13
votes
4 answers

RSpec Stories and Specs: When to use what?

So I want to start using RSpec stories, but I am not sure where writing controller, model and view specs fit in. For example, you have the story "Logging in" with "User provides wrong password" scenario, don't you end up testing the same stuff than…
Luciano
2
votes
7 answers

How to get stories to work with restful_authentication and cucumber?

After cloning the latest stable versions of rails (2.3.2), rspec (1.2.2), cucumber (0.2.0.4...came out 2009-03-24), rspec-rails (1.2.2), restful-authentication (fixed formatted_user_path and a few other problems), webrat, rubyist-aasm (and a few…
btelles
  • 5,390
  • 7
  • 46
  • 78
0
votes
2 answers

Rspecs for model and before_create methods

I have model name: UserApplicationPatient. That model having two associations: belongs_to :patient belongs_to :customer before_create :set_defaults private def set_defaults self.enrol_date_and_time = Time.now.utc self.pap = '1' …
Kumar Nikhil
  • 99
  • 1
  • 11