Sha256: c1f6956101eb37fca81be9051c04418684a7e8f53844a53aba634269d84495f2
Contents?: true
Size: 1.49 KB
Versions: 2
Compression:
Stored size: 1.49 KB
Contents
Feature: CMS Lite As a user I want to be able to view cms lite pages And have them served using Rails so that they will have the website chrome Scenario: Anonymous user visits public cms lite page Given cms lite file "content/pages/en/open/hello.html.erb" contains "hello world" And I am not logged in When I go to "/open/hello" Then I should see "hello world" Scenario: Anonymous user visits public cms lite page in blue theme Given cms lite file "themes/blue/content/pages/en/open/blue.html.erb" contains "blue world" And I am not logged in When I go to "/open/blue" Then I should see "blue world" Scenario: Anonymous user visits protected cms lite page Given protected cms lite file "content/protected-pages/en/protected/safe-hello.html.erb" contains "protect hello world" And I am not logged in When I go to "/protected/safe-hello" Then I should see the login And I should see a "notice" flash message Scenario: Logged in user visits protected cms lite page Given protected cms lite file "content/protected-pages/en/protected/safe-hello.html.erb" contains "protect hello world" And I log in as new user When I go to "/protected/safe-hello" Then I should see "protect hello world" Scenario: Logged in user visits protected cms lite page in red theme Given protected cms lite file "themes/red/content/protected-pages/en/red/red.html.erb" contains "protect red world" And I log in as new user When I go to "/red/red" Then I should see "protect red world"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cms-lite-0.4.0 | test/rails_root/features/view_cms_pages.feature |
cms-lite-0.4.1 | test/rails_root/features/view_cms_pages.feature |