Created
June 26, 2012 00:15
-
-
Save victorhg/2992243 to your computer and use it in GitHub Desktop.
Largamos o cucumber
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "User acessing website", """ | |
In order to easy accessing process | |
As a user | |
I can use my facebook account to connect to the website""" do | |
context "When a user doesn't have a go2doc account" do | |
context "Acessing the registration process with facebook" do | |
before do | |
visit root_path | |
click_link "Facebook-login" | |
end | |
it "Should fill in personal data" do | |
find("#user_facebook_id").value.should eq("123123") | |
find_field("user_name").value.should eq("Vito Corleone") | |
find_field("user_email").value.should eq("[email protected]") | |
find_field("user[gender]").value.should eq("male") | |
find_field("user_dateOfBirth_3i").value.should eq("7") | |
find_field("user_dateOfBirth_2i").value.should eq("12") | |
find_field("user_dateOfBirth_1i").value.should eq("1991") | |
end | |
it "Should not present password information" do | |
page.should_not have_field("user_password") | |
page.should_not have_field("user_password_confirmation") | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment