Skip to content

Commit

Permalink
Added failing spec for refinery#1382
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Mar 1, 2012
1 parent 12572a0 commit 54ea67d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion authentication/spec/requests/refinery/admin/users_spec.rb
@@ -1,7 +1,7 @@
require "spec_helper"

describe "manage users" do
login_refinery_user
login_refinery_superuser

describe "new/create" do
it "allows to create user" do
Expand Down Expand Up @@ -31,6 +31,20 @@
page.should have_content("cmsrefinery was successfully updated.")
page.should have_content("cmsrefinery (cms@refinerycms.com)")
end

let(:dotty_user) { FactoryGirl.create(:refinery_user, :username => 'user.name.with.lots.of.dots') }
it "accepts a username with a '.' in it" do
dotty_user # create the user
visit refinery.admin_users_path

page.should have_css("#sortable_#{dotty_user.id}")

within "#sortable_#{dotty_user.id}" do
click_link "Edit this user"
end

page.should have_css("form#edit_user_#{dotty_user.id}")
end
end

describe "destroy" do
Expand Down

0 comments on commit 54ea67d

Please sign in to comment.