Cucumber / Doc cleanup

This commit is contained in:
Jacques Crocker 2010-08-01 23:32:33 -07:00
parent ad38eb53a8
commit c05536153e
4 changed files with 30 additions and 8 deletions

View File

@ -1,2 +0,0 @@
Use this README file to introduce your application and point to useful places in the API for learning more.
Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.

View File

@ -60,5 +60,16 @@ Authentication Stuff
- Forgot password
Rendering Features
- Go through all the rendering and templating features and spec them out using features
- Start with defining the data models, then giving a template snippet, and verify it against the expected output
- Basic render (DONE)
- using a layout (DONE)
- using a layout with multiple parts (DONE)
- using snippets
- referencing images
- using data models
- loop through data models

View File

@ -71,3 +71,18 @@ Scenario: Page with Parts
</div>
<div class="footer"></div>
"""
@wip
Scenario: Simple Page with Admin Inline Editing
Given a simple page named "hello-world-inline" with the body:
"""
{% block hello %}Hello World{% endblock %}
"""
When And I'm an admin
And I view the rendered page at "/hello-world-inline"
Then the rendered output shoud look like:
"""
<div class="inline-editing" data-url="/admin/parts/XXXX" data-title="hello">Hello World</div>
"""

View File

@ -1,6 +1,4 @@
require 'database_cleaner'
Before do
DatabaseCleaner.clean
end
DatabaseCleaner.strategy = :truncation
DatabaseCleaner.orm = "mongoid"
Before{ DatabaseCleaner.clean }