Sha256: 6f996a5b4afb99659051a01870c054e3d1baa4c16870939f77ebf9c616f5ce0c
Contents?: true
Size: 809 Bytes
Versions: 4
Compression:
Stored size: 809 Bytes
Contents
# Steps related to authentication can be found below # Given /^I am an authenticated user$/ do Given %{I am a user} Given %{I am authenticated} end Given /^I am authenticated with facebook$/ do Given %{I go to the home page} And %{I click "Sign in"} And %{I click "Sign in with Facebook"} Then %{I should be authenticated} And %{I should have a Facebook Identity} end Given /^I am not authenticated$/ do # do nothing end Then /^I should (not|)\s?be (?:logged in|authenticated)$/ do |negative| if negative.present? # page.should_not have_content "Dashboard" page.should_not have_content "Sign out" page.should have_content "Sign in" else # page.should have_content "Dashboard" page.should have_content "Sign out" page.should_not have_content "Sign in" end end
Version data entries
4 entries across 4 versions & 1 rubygems