Skip to content

Instantly share code, notes, and snippets.

@marocchino
Created March 18, 2011 18:49
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 marocchino/876616 to your computer and use it in GitHub Desktop.
Save marocchino/876616 to your computer and use it in GitHub Desktop.
Given /^"([^"]+)"님은 로그인상태입니다$/ do |name|
user = User.new(:login => "test123", :name => "사용자", :email => "te...@test.com", :password => "test123", :password_confirmation => "test123", :role_id => 3, :state => "active")
user.create!
user.register!
user.activate!
visit '/login'
fill_in("login", :with => "test123")
fill_in("password", :with => "test123")
click_button "Log-in"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment