Sha256: daaf8c326975abaae7d9d81593be2315efd97cd632a914be58dbfbfb2b9ff942

Contents?: true

Size: 550 Bytes

Versions: 1

Compression:

Stored size: 550 Bytes

Contents

# frozen_string_literal: true

require "rails_helper"

RSpec.describe "Auth log in", type: :feature do
  describe "with invalid credentials" do
    let(:message) do
      "You have to confirm your email address before continuing."
    end

    it "fails to log in with unconfirmed user" do
      create(:user, :unconfirmed, created_at: 1.day.ago, email: "me@email.com")

      visit "/account/login"

      fill_in_login_form_with("me@email.com", "password")
      click_button "Log in"

      expect(page).to have_content(message)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.4.0 spec/features/auth/log_in/unconfirmed_spec.rb