diff --git a/doc/README_FOR_APP b/doc/README_FOR_APP deleted file mode 100644 index fe41f5cc..00000000 --- a/doc/README_FOR_APP +++ /dev/null @@ -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. diff --git a/doc/feature_list.txt b/doc/feature_list.txt index 62c2fd86..2278a22c 100644 --- a/doc/feature_list.txt +++ b/doc/feature_list.txt @@ -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 + + + + + diff --git a/features/render/engine.feature b/features/render/engine.feature index be2cfda1..3ef672d7 100644 --- a/features/render/engine.feature +++ b/features/render/engine.feature @@ -71,3 +71,18 @@ Scenario: Page with Parts """ + +@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: + """ +
Hello World
+ """ + + diff --git a/features/support/cleaner.rb b/features/support/cleaner.rb index ddc9e7bf..b234d325 100644 --- a/features/support/cleaner.rb +++ b/features/support/cleaner.rb @@ -1,6 +1,4 @@ require 'database_cleaner' -Before do - DatabaseCleaner.clean -end DatabaseCleaner.strategy = :truncation -DatabaseCleaner.orm = "mongoid" \ No newline at end of file +DatabaseCleaner.orm = "mongoid" +Before{ DatabaseCleaner.clean }