daviddavis/rubeque — pull request #99 by rogeliog (2012-05-17 15:03:20+00:00)
Title:  'Next Problem' feature developed (Issue #95)

Hello,

Here is an implementation to the 'Next Problem' feature mentioned on Issue #95.

The process works like this.
* Each problem can have a "next problem" association.
* If the user has successfully solved the problem he can view a "Next Problem link" and go to the next one.

The cucumber features explains it better.

For now you will need to manually add the "Next problem" association but tell wat you think and we can add an after create that adds it automatically

Example:
* When I create a new Problem this problem can by marked as "next problem" of the las problem created before this one.

Well, let me know what you think, I was also thinking about adding rspec to the models.

NOTE: I've added three files(`web_steps.rb`, `paths.rb`, `selectors.rb`) that do the following:
* The `web_steps` file handles common user interaction steps.
* The `paths` file is in charge of all the "I am on the 'some' path" so that way, you have them all on a single file and it is easier to maintain.

Both of this files are normally on the cucumber default setup, and I think that is the best practice. But if you don't like them there is no problem, just tell my and I can re upload my commit implementing the steps without those files.

Regards.