Sha256: 1d7d3a1c4d5568093e6c2ddf3e77d270fb7e026868af3477ec9ac93f7daa8a0d
Contents?: true
Size: 694 Bytes
Versions: 6
Compression:
Stored size: 694 Bytes
Contents
require 'spec_helper' feature "User Sessions" do include Capybara::DSL # Remove once https://github.com/jnicklas/capybara/pull/809 is resolved. background do @user = create(:user) @user.activate! end scenario "Sign in with valid credentials" do sign_in(@user.email, 'password') find('.alert').should have_content("Successfully signed in") end scenario "Sign in with an invalid email" do sign_in('this is not valid', 'password') find('.alert').should have_content("Sign in failed") end scenario "Sign in with an invalid password" do sign_in(@user.email, 'this is not valid') find('.alert').should have_content("Sign in failed") end end
Version data entries
6 entries across 6 versions & 1 rubygems