<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>db/migrate/20090929164633_rename_developer_role_to_designer.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,8 +1,8 @@
 class Admin::LayoutsController &lt; Admin::ResourceController
   only_allow_access_to :index, :show, :new, :create, :edit, :update, :remove, :destroy,
-    :when =&gt; [:developer, :admin],
+    :when =&gt; [:designer, :admin],
     :denied_url =&gt; { :controller =&gt; 'admin/pages', :action =&gt; 'index' },
-    :denied_message =&gt; 'You must have developer privileges to perform this action.'
+    :denied_message =&gt; 'You must have designer privileges to perform this action.'
 
   def show
     respond_to do |format|</diff>
      <filename>app/controllers/admin/layouts_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,8 @@
 class Admin::SnippetsController &lt; Admin::ResourceController
   only_allow_access_to :index, :show, :new, :create, :edit, :update, :remove, :destroy,
-    :when =&gt; [:developer, :admin],
+    :when =&gt; [:designer, :admin],
     :denied_url =&gt; { :controller =&gt; 'admin/pages', :action =&gt; 'index' },
-    :denied_message =&gt; 'You must have developer privileges to perform this action.'
+    :denied_message =&gt; 'You must have designer privileges to perform this action.'
   
   def show
     respond_to do |format|</diff>
      <filename>app/controllers/admin/snippets_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ module Admin::UsersHelper
   def roles(user)
     roles = []
     roles &lt;&lt; 'Administrator' if user.admin?
-    roles &lt;&lt; 'Developer' if user.developer?
+    roles &lt;&lt; 'Designer' if user.designer?
     roles.join(', ')
   end
 end</diff>
      <filename>app/helpers/admin/users_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -92,8 +92,8 @@ module ApplicationHelper
     current_user and current_user.admin?
   end
 
-  def developer?
-    current_user and (current_user.developer? or current_user.admin?)
+  def designer?
+    current_user and (current_user.designer? or current_user.admin?)
   end
 
   def focus(field_name)</diff>
      <filename>app/helpers/application_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -26,8 +26,8 @@
         %label.multi_option Roles
         = f.check_box &quot;admin&quot;, :class =&gt; &quot;checkbox&quot;
         = f.label :admin, &quot;Administrator&quot;, :class =&gt; &quot;checkbox&quot;
-        = f.check_box &quot;developer&quot;, :class =&gt; &quot;checkbox&quot;
-        = f.label :developer, &quot;Developer&quot;, :class =&gt; &quot;checkbox&quot;
+        = f.check_box &quot;designer&quot;, :class =&gt; &quot;checkbox&quot;
+        = f.label :designer, &quot;Designer&quot;, :class =&gt; &quot;checkbox&quot;
     
     - form.edit_notes do
       %p</diff>
      <filename>app/views/admin/users/_form.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version =&gt; 20081203140407) do
+ActiveRecord::Schema.define(:version =&gt; 20090929164633) do
 
   create_table &quot;config&quot;, :force =&gt; true do |t|
     t.string &quot;key&quot;,   :limit =&gt; 40, :default =&gt; &quot;&quot;, :null =&gt; false
@@ -100,7 +100,7 @@ ActiveRecord::Schema.define(:version =&gt; 20081203140407) do
     t.integer  &quot;created_by_id&quot;
     t.integer  &quot;updated_by_id&quot;
     t.boolean  &quot;admin&quot;,                        :default =&gt; false, :null =&gt; false
-    t.boolean  &quot;developer&quot;,                    :default =&gt; false, :null =&gt; false
+    t.boolean  &quot;designer&quot;,                     :default =&gt; false, :null =&gt; false
     t.text     &quot;notes&quot;
     t.integer  &quot;lock_version&quot;,                 :default =&gt; 0
     t.string   &quot;salt&quot;</diff>
      <filename>db/schema.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 Feature: Managing snippets
   In order to properly display the content 
-  As a developer I want to manage the layouts
+  As a designer I want to manage the layouts
   
   Background:
-    Given I am logged in as &quot;developer&quot;
+    Given I am logged in as &quot;designer&quot;
     
   Scenario: View a layout
     When I view a layout</diff>
      <filename>features/admin/layouts_management.feature</filename>
    </modified>
    <modified>
      <diff>@@ -1,13 +1,12 @@
 Feature: Managing snippets
-  In order to remove the repetition of entering the same content 
-  multiple times and allow applying the same block to small pieces of
-  content, as a content editor I want to manage a collection of snippets
+  In order to share content between layouts and pages, as a designer I want to
+  manage a collection of snippets
   
   Background:
-    Given I am logged in as &quot;developer&quot;
+    Given I am logged in as &quot;designer&quot;
   
   Scenario: List snippets
-    When I follow &quot;Design&quot;
+    When I follow &quot;Design&quot; within &quot;navigation&quot;
     And I follow &quot;Snippets&quot;
     Then I should see &quot;first&quot;
     And I should see &quot;another&quot;
@@ -15,7 +14,7 @@ Feature: Managing snippets
     # And a host of others
   
   Scenario: Create a snippet
-    When I follow &quot;Design&quot;
+    When I follow &quot;Design&quot; within &quot;navigation&quot;
     And I follow &quot;Snippets&quot;
     And I follow &quot;New Snippet&quot;
     And I fill in &quot;Name&quot; with &quot;Mine&quot;
@@ -25,7 +24,7 @@ Feature: Managing snippets
     And I should see &quot;Mine&quot;
     
   Scenario: Display form errors
-    When I follow &quot;Design&quot;
+    When I follow &quot;Design&quot; within &quot;navigation&quot;
     And I follow &quot;Snippets&quot;
     And I follow &quot;New Snippet&quot;
     And I fill in &quot;Body&quot; with &quot;My snippet&quot;
@@ -34,7 +33,7 @@ Feature: Managing snippets
     And I should see the form
   
   Scenario: Continue editing
-    When I follow &quot;Design&quot;
+    When I follow &quot;Design&quot; within &quot;navigation&quot;
     And I follow &quot;Snippets&quot;
     And I follow &quot;New Snippet&quot;
     And I fill in &quot;Name&quot; with &quot;Mine&quot;
@@ -48,7 +47,7 @@ Feature: Managing snippets
     Then I should see &quot;Edit Snippet&quot;
     
   Scenario: Delete a snippet with confirmation
-    When I follow &quot;Design&quot;
+    When I follow &quot;Design&quot; within &quot;navigation&quot;
     And I follow &quot;Snippets&quot;
     And I follow &quot;Remove&quot;
     Then I should see &quot;permanently remove&quot;</diff>
      <filename>features/admin/snippets_management.feature</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ Feature: User authentication and permissions
       | username  |
       | admin     |
       | existing  |
-      | developer |
+      | designer |
   
   Scenario Outline: Authentication-logout
     Given I am logged in as &quot;&lt;username&gt;&quot;
@@ -25,7 +25,7 @@ Feature: User authentication and permissions
       | username  |
       | admin     |
       | existing  |
-      | developer |
+      | designer |
   
   
   Scenario Outline: All users can edit pages
@@ -40,41 +40,41 @@ Feature: User authentication and permissions
       | username  |
       | admin     |
       | existing  |
-      | developer |
+      | designer |
       
-  Scenario Outline: Admins and developers can see and edit snippets
+  Scenario Outline: Admins and designers can see and edit snippets
     Given I am logged in as &quot;&lt;username&gt;&quot;
     And I should see &quot;Design&quot;
-    When I follow &quot;Design&quot;
+    When I follow &quot;Design&quot; within &quot;navigation&quot;
     And I follow &quot;Snippets&quot;
-    And I should not see &quot;You must have developer privileges&quot;
+    And I should not see &quot;You must have designer privileges&quot;
     And I follow &quot;first&quot;
     Then I should see &quot;Edit Snippet&quot;
     
     Examples:
       | username  |
       | admin     |
-      | developer |
+      | designer |
   
-  Scenario Outline: Admins and developers can see and edit layouts
+  Scenario Outline: Admins and designers can see and edit layouts
     Given I am logged in as &quot;&lt;username&gt;&quot;
     And I should see &quot;Design&quot;
-    When I follow &quot;Design&quot;
+    When I follow &quot;Design&quot; within &quot;navigation&quot;
     And I follow &quot;Layouts&quot;
-    And I should not see &quot;You must have developer privileges&quot;
+    And I should not see &quot;You must have designer privileges&quot;
     And I follow &quot;Main&quot;
     Then I should see &quot;Edit Layout&quot;
     
     Examples:
       | username  |
       | admin     |
-      | developer |
+      | designer |
       
   Scenario Outline: Ordinary users cannot edit layouts
     Given I am logged in as &quot;&lt;username&gt;&quot;
     And I should not see &quot;Design&quot;
     When I go to &quot;/admin/layouts&quot;
-    Then I should see &quot;You must have developer privileges&quot;
+    Then I should see &quot;You must have designer privileges&quot;
 
     Examples:
       | username  |
@@ -85,7 +85,7 @@ Feature: User authentication and permissions
     Given I am logged in as &quot;&lt;username&gt;&quot;
     And I should not see &quot;Design&quot;
     When I go to &quot;/admin/snippets&quot;
-    Then I should see &quot;You must have developer privileges&quot;
+    Then I should see &quot;You must have designer privileges&quot;
 
     Examples:
       | username  |
@@ -110,7 +110,7 @@ Feature: User authentication and permissions
       | username  |
       | existing  |
       | another   |
-      | developer |
+      | designer |
       
   Scenario Outline: Non-admins see preferences link
     Given I am logged in as &quot;&lt;username&gt;&quot;
@@ -123,7 +123,7 @@ Feature: User authentication and permissions
       | username  |
       | existing  |
       | another   |
-      | developer |
+      | designer |
 
   Scenario: Admin users can see extensions
     Given I am logged in as &quot;admin&quot;
@@ -142,7 +142,7 @@ Feature: User authentication and permissions
       | username  |
       | existing  |
       | another   |
-      | developer |
+      | designer |
   
   Scenario Outline: Anyone can export YAML
     Given I am logged in as &quot;&lt;username&gt;&quot;
@@ -154,4 +154,4 @@ Feature: User authentication and permissions
       | admin     |
       | existing  |
       | another   |
-      | developer |
\ No newline at end of file
+      | designer |
\ No newline at end of file</diff>
      <filename>features/admin/user_permissions.feature</filename>
    </modified>
    <modified>
      <diff>@@ -14,5 +14,5 @@ Feature: Edit user preferences
       | admin     |
       | another   |
       | existing  |
-      | developer |
+      | designer |
       | non_admin |</diff>
      <filename>features/admin/user_preferences.feature</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@ Feature: Managing users
     And I go to &quot;/admin/users&quot;
   Scenario: Listing users
     Then I should see &quot;Admin&quot;
-    And I should see &quot;Developer&quot;
+    And I should see &quot;Designer&quot;
     And I should see &quot;Existing&quot;
     # And a host of others
     
@@ -35,14 +35,14 @@ Feature: Managing users
     And I should see the form
     
   Scenario: Edit existing user
-    When I follow &quot;Developer&quot;
+    When I follow &quot;Designer&quot;
     Then I should see the form
     When I fill in &quot;Name&quot; with &quot;Old Guy&quot;
     And I fill in &quot;Username&quot; with &quot;oldguy&quot;
-    And I uncheck &quot;Developer&quot;
+    And I uncheck &quot;Designer&quot;
     And I press &quot;Save Changes&quot;
     Then I should see &quot;Old Guy&quot;
-    But I should not see &quot;Developer&quot;
+    But I should not see &quot;Designer&quot;
 
   Scenario: Cannot remove self
     When I attempt to remove my own account</diff>
      <filename>features/admin/users_management.feature</filename>
    </modified>
    <modified>
      <diff>@@ -19,6 +19,10 @@ When /^I follow &quot;([^\&quot;]*)&quot;$/ do |link|
   click_link(link)
 end
 
+When /^I follow &quot;([^\&quot;]*)&quot; within &quot;([^\&quot;]*)&quot;$/ do |link, element_id|
+  click_link_within(&quot;##{element_id}&quot;, link)
+end
+
 When /^I fill in &quot;([^\&quot;]*)&quot; with &quot;([^\&quot;]*)&quot;$/ do |field, value|
   fill_in(field, :with =&gt; value) 
 end
@@ -115,3 +119,7 @@ end
 Then /^I should be on (.+)$/ do |page_name|
   URI.parse(current_url).path.should == path_to(page_name)
 end
+
+Then /^show me the page$/ do
+  save_and_open_page
+end</diff>
      <filename>features/step_definitions/webrat_steps.rb</filename>
    </modified>
    <modified>
      <diff>@@ -120,7 +120,7 @@ module Radiant
       content &lt;&lt; nav_item(:pages, &quot;Pages&quot;, &quot;/admin/pages&quot;)
       nav &lt;&lt; content
 
-      design = nav_tab(:design, &quot;Design&quot;, [:developer, :admin])
+      design = nav_tab(:design, &quot;Design&quot;, [:designer, :admin])
       design &lt;&lt; nav_item(:layouts, &quot;Layouts&quot;, &quot;/admin/layouts&quot;)
       design &lt;&lt; nav_item(:snippets, &quot;Snippets&quot;, &quot;/admin/snippets&quot;)
       nav &lt;&lt; design</diff>
      <filename>lib/radiant/admin_ui.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@ describe Admin::ExportController do
   dataset :users_and_pages
   
   before :each do
-    login_as :developer
+    login_as :designer
   end
   
   it &quot;should export a YAML file&quot; do</diff>
      <filename>spec/controllers/admin/export_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@ describe Admin::LayoutsController do
   dataset :users, :pages_with_layouts
 
   before :each do
-    login_as :developer
+    login_as :designer
   end
 
   it &quot;should be a ResourceController&quot; do
@@ -71,21 +71,21 @@ describe Admin::LayoutsController do
         lambda { send(method, action).should require_login }
       end
 
-      it &quot;should allow access to developers for the #{action} action&quot; do
+      it &quot;should allow access to designers for the #{action} action&quot; do
         lambda {
           send(method, action, :id =&gt; layout_id(:main))
-        }.should restrict_access(:allow =&gt; [users(:developer)],
+        }.should restrict_access(:allow =&gt; [users(:designer)],
                                  :url =&gt; '/admin/pages')
       end
 
       it &quot;should allow access to admins for the #{action} action&quot; do
         lambda {
           send(method, action, :id =&gt; layout_id(:main))
-        }.should restrict_access(:allow =&gt; [users(:developer)],
+        }.should restrict_access(:allow =&gt; [users(:designer)],
                                  :url =&gt; '/admin/pages')
       end
 
-      it &quot;should deny non-developers and non-admins for the #{action} action&quot; do
+      it &quot;should deny non-designers and non-admins for the #{action} action&quot; do
         lambda {
           send(method, action, :id =&gt; layout_id(:main))
         }.should restrict_access(:deny =&gt; [users(:non_admin), users(:existing)],</diff>
      <filename>spec/controllers/admin/layouts_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -120,7 +120,7 @@ describe Admin::PagesController do
 
   describe &quot;permissions&quot; do
 
-    [:admin, :developer, :non_admin, :existing].each do |user|
+    [:admin, :designer, :non_admin, :existing].each do |user|
       {
         :post =&gt; :create,
         :put =&gt; :update,
@@ -173,14 +173,14 @@ describe Admin::PagesController do
                                    :url =&gt; '/admin/pages')
         end
 
-        it &quot;should allow access to developers for the #{action} action&quot; do
+        it &quot;should allow access to designers for the #{action} action&quot; do
           lambda {
             send(:get, action, @parameters.call)
-          }.should restrict_access(:allow =&gt; [users(:developer)],
+          }.should restrict_access(:allow =&gt; [users(:designer)],
                                    :url =&gt; '/admin/pages')
         end
 
-        it &quot;should allow non-developers and non-admins for the #{action} action&quot; do
+        it &quot;should allow non-designers and non-admins for the #{action} action&quot; do
           lambda {
             send(:get, action, @parameters.call)
           }.should restrict_access(:allow =&gt; [users(:non_admin), users(:existing)],</diff>
      <filename>spec/controllers/admin/pages_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@ describe Admin::SnippetsController do
 
   before :each do
     ActionController::Routing::Routes.reload
-    login_as :developer
+    login_as :designer
   end
 
   it &quot;should be an ResourceController&quot; do
@@ -79,21 +79,21 @@ describe Admin::SnippetsController do
           response.response_code.should == 401
         end
       else
-        it &quot;should allow access to developers for the #{action} action&quot; do
+        it &quot;should allow access to designers for the #{action} action&quot; do
           lambda {
             send(method, action, :id =&gt; snippet_id(:first))
-          }.should restrict_access(:allow =&gt; [users(:developer)],
+          }.should restrict_access(:allow =&gt; [users(:designer)],
                                   :url =&gt; '/admin/pages')
         end
 
         it &quot;should allow access to admins for the #{action} action&quot; do
           lambda {
             send(method, action, :id =&gt; snippet_id(:first))
-          }.should restrict_access(:allow =&gt; [users(:developer)],
+          }.should restrict_access(:allow =&gt; [users(:designer)],
                                    :url =&gt; '/admin/pages')
         end
 
-        it &quot;should deny non-developers and non-admins for the #{action} action&quot; do
+        it &quot;should deny non-designers and non-admins for the #{action} action&quot; do
           lambda {
             send(method, action, :id =&gt; Snippet.first.id)
           }.should restrict_access(:deny =&gt; [users(:non_admin), users(:existing)],</diff>
      <filename>spec/controllers/admin/snippets_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -75,7 +75,7 @@ describe Admin::UsersController do
       it &quot;should deny you access to #{action} action if you are not an admin&quot; do
         lambda { 
           send(method, action, :id =&gt; user_id(:existing)) 
-        }.should restrict_access(:deny =&gt; [users(:developer), users(:existing)],
+        }.should restrict_access(:deny =&gt; [users(:designer), users(:existing)],
                                  :url =&gt; '/admin/page')
       end
     end</diff>
      <filename>spec/controllers/admin/users_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@ class UsersDataset &lt; Dataset::Base
     create_user &quot;Existing&quot;
     create_user &quot;Another&quot;
     create_user &quot;Admin&quot;, :admin =&gt; true
-    create_user &quot;Developer&quot;, :developer =&gt; true
+    create_user &quot;Designer&quot;, :designer =&gt; true
     create_user &quot;Non-admin&quot;, :admin =&gt; false
   end
   </diff>
      <filename>spec/datasets/users_dataset.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@ describe Admin::UsersHelper do
   
   it &quot;should render a string containing the user's roles&quot; do
     helper.roles(users(:admin)).should == &quot;Administrator&quot;
-    helper.roles(users(:developer)).should == &quot;Developer&quot;
+    helper.roles(users(:designer)).should == &quot;Designer&quot;
     helper.roles(users(:existing)).should == ''
   end
 end
\ No newline at end of file</diff>
      <filename>spec/helpers/admin/users_helper_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -109,9 +109,9 @@ describe ApplicationHelper do
     helper.admin?.should be_true
   end
   
-  it &quot;should determine whether the current user is a developer&quot; do
-    helper.should_receive(:current_user).at_least(1).times.and_return(users(:developer))
-    helper.developer?.should be_true
+  it &quot;should determine whether the current user is a designer&quot; do
+    helper.should_receive(:current_user).at_least(1).times.and_return(users(:designer))
+    helper.designer?.should be_true
   end
   
   it &quot;should render a Javascript snippet that focuses a given field&quot; do</diff>
      <filename>spec/helpers/application_helper_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -13,7 +13,7 @@ class NoLoginRequiredChildController &lt; NoLoginRequiredController; end
 class LoginRequiredGrandChildController &lt; NoLoginRequiredChildController; login_required; end
 class PrivilegedUsersOnlyController &lt; LoginRequiredController
   only_allow_access_to :edit, :new,
-                       :when =&gt; [:admin, :developer],
+                       :when =&gt; [:admin, :designer],
                        :denied_url =&gt; '/login_required',
                        :denied_message =&gt; 'Fun.'
   def edit; render :text =&gt; 'just a test'; end</diff>
      <filename>spec/lib/login_system_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -69,15 +69,15 @@ describe Radiant::AdminUI::NavTab do
     end
     
     it &quot;should restrict to a specific role&quot; do
-      @tab.visibility.replace [:developer]
-      @tab.should be_visible(users(:developer))
+      @tab.visibility.replace [:designer]
+      @tab.should be_visible(users(:designer))
       @tab.should_not be_visible(users(:admin))
       @tab.should_not be_visible(users(:existing))
     end
     
     it &quot;should restrict to a group of roles&quot; do
-      @tab.visibility.replace [:developer, :admin]
-      @tab.should be_visible(users(:developer))
+      @tab.visibility.replace [:designer, :admin]
+      @tab.should be_visible(users(:designer))
       @tab.should be_visible(users(:admin))
       @tab.should_not be_visible(users(:existing))
     end
@@ -144,7 +144,7 @@ describe Radiant::AdminUI::NavSubItem do
     
     it &quot;should not be visible when the parent tab is not visible to the user&quot; do
       @tab.visibility.replace [:admin]
-      @subitem.should_not be_visible(users(:developer))
+      @subitem.should_not be_visible(users(:designer))
       @subitem.should_not be_visible(users(:existing))
     end
     </diff>
      <filename>spec/lib/radiant/admin_ui/nav_tabs_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -192,12 +192,12 @@ describe User, &quot;roles&quot; do
   end
   
   it &quot;should not have a role for which the corresponding method returns false&quot; do
-    users(:existing).has_role?(:developer).should be_false
+    users(:existing).has_role?(:designer).should be_false
     users(:existing).has_role?(:admin).should be_false
   end
   
   it &quot;should have a role for which the corresponding method returns true&quot; do
-    users(:developer).has_role?(:developer).should be_true
+    users(:designer).has_role?(:designer).should be_true
     users(:admin).has_role?(:admin).should be_true
   end
 end
\ No newline at end of file</diff>
      <filename>spec/models/user_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>77b224316a260e969a15dee115721c0d03d38c13</id>
    </parent>
  </parents>
  <author>
    <name>John W. Long</name>
    <email>me@johnwlong.com</email>
  </author>
  <url>http://github.com/radiant/radiant/commit/d5761fccd85a3579ebcf22089d87f85ccdbff339</url>
  <id>d5761fccd85a3579ebcf22089d87f85ccdbff339</id>
  <committed-date>2009-09-29T15:18:35-07:00</committed-date>
  <authored-date>2009-09-29T15:18:35-07:00</authored-date>
  <message>renamed &quot;developer&quot; role to &quot;designer&quot;</message>
  <tree>c6b3a31d9d1c3672c52799f64f39affb0171ac17</tree>
  <committer>
    <name>John W. Long</name>
    <email>me@johnwlong.com</email>
  </committer>
</commit>
