Sha256: c642801c0046babacff20e765244d624eedbf7800ba91bb563a493729cc71d11
Contents?: true
Size: 562 Bytes
Versions: 20
Compression:
Stored size: 562 Bytes
Contents
require 'spec_helper' feature "Activation" do scenario "with a valid token should activate the user and sign them in" do @user = create(:user) visit activation_path(@user.activation_token) expect(current_path).to eq sign_in_path expect(page).to have_content "Your account has been activated and you're now signed in." end scenario "with an invalid token should send the user to sign in" do visit activation_path('BOGUS') expect(current_path).to eq sign_in_path expect(page).to have_content "Please sign in first." end end
Version data entries
20 entries across 20 versions & 1 rubygems