Skip to content

Commit

Permalink
Show username in plugin activities of refinery_users on dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
map-lo committed Apr 26, 2011
1 parent d4816b8 commit 5103787
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions authentication/features/manage_users.feature
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,30 @@ Feature: Manage Users
Then I should be on the list of users
And I should see "cucumber was successfully updated."
And I should see "cucumber (green@cucumber.com)"

@users-dashboard @add
Scenario: Add User
Given I have a user named "steven"
And I am a logged in refinery user
When I go to the list of users
And I follow "Add new user"
And I fill in "Username" with "marian"
And I fill in "Email" with "green@cucumber.com"
And I fill in "Password" with "greenandjuicy"
And I fill in "Password confirmation" with "greenandjuicy"
And I press "Save"
Then I should be on the list of users
When I go to the Dashboard
Then I should see "Marian user was added"

@users-dashboard @edit
Scenario: Edit User
Given I have a user named "steven"
And I am a logged in refinery user
When I go to the list of users
And I follow "Edit this user"
And I fill in "Username" with "marian"
And I press "Save"
Then I should be on the list of users
When I go to the Dashboard
Then I should see "Marian user was updated"
2 changes: 1 addition & 1 deletion authentication/lib/refinerycms-authentication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Engine < ::Rails::Engine
plugin.menu_match = /(refinery|admin)\/users$/
plugin.activity = {
:class => User,
:title => 'login'
:title => 'username'
}
plugin.url = {:controller => "/admin/users"}
end
Expand Down

0 comments on commit 5103787

Please sign in to comment.