Skip to content

Instantly share code, notes, and snippets.

@ropiku
Created February 11, 2009 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ropiku/62363 to your computer and use it in GitHub Desktop.
Save ropiku/62363 to your computer and use it in GitHub Desktop.
require File.dirname(__FILE__) + '/../test_helper'
class UsersControllerTest < ActionController::TestCase
include Clearance::Test::Functional::UsersControllerTest
public_context do
context "When getting new User view" do
setup { get :new }
should "display username field" do
assert_select "input[type=text][name=?]", "user[username]", true, "There must be a username field"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment