Fix RoutingError when changing username to non ascii char.
This commit is contained in:
parent
90db28d6d0
commit
33e236c631
3 changed files with 33 additions and 0 deletions
|
@ -8,4 +8,27 @@ class AdminUsers < Spinach::FeatureSteps
|
|||
page.should have_content user.name
|
||||
end
|
||||
end
|
||||
|
||||
And 'Click edit' do
|
||||
@user = User.first
|
||||
find("#edit_user_#{@user.id}").click
|
||||
end
|
||||
|
||||
And 'Input non ascii char in username' do
|
||||
fill_in 'user_username', with: "\u3042\u3044"
|
||||
end
|
||||
|
||||
And 'Click save' do
|
||||
click_button("Save")
|
||||
end
|
||||
|
||||
Then 'See username error message' do
|
||||
within "#error_explanation" do
|
||||
page.should have_content "Username"
|
||||
end
|
||||
end
|
||||
|
||||
And 'Not chenged form action url' do
|
||||
page.should have_selector %(form[action="/admin/users/#{@user.username}"])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue