Sha256: ffca7868040f2f9892d4b825f12042b2a05cbe9cc8d0729faec2c4258e8a9b6a

Contents?: true

Size: 544 Bytes

Versions: 33

Compression:

Stored size: 544 Bytes

Contents

require "spec_helper"

feature 'Sign In' do

	context 'valid in users' do
		scenario 'after sign in it should redirect to accounts page' do
			account = create :account
			sign_in account.owner, attributes_for(:user)[:password]
			expect(page.current_url).to match(/#{mtdevise.accounts_path}/)
		end
	end
	context 'invalid users' do
		scenario 'should not let them in'  do
			account = create :account
			sign_in account.owner, 'invalid pwd'
			expect(page).to have_text('Invalid')
			expect(page).not_to have_text(account.name)
		end
	end

end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
mtdevise-3.5.5 spec/features/accounts/sign_in_spec.rb
mtdevise-3.5.1 spec/features/accounts/sign_in_spec.rb
mtdevise-3.5.0 spec/features/accounts/sign_in_spec.rb
mtdevise-3.0.4 spec/features/accounts/sign_in_spec.rb
mtdevise-3.0.2 spec/features/accounts/sign_in_spec.rb
mtdevise-3.0.0 spec/features/accounts/sign_in_spec.rb
mtdevise-2.7.0 spec/features/accounts/sign_in_spec.rb
mtdevise-2.6.6 spec/features/accounts/sign_in_spec.rb
mtdevise-2.6.5 spec/features/accounts/sign_in_spec.rb
mtdevise-2.5.9 spec/features/accounts/sign_in_spec.rb
mtdevise-2.5.7 spec/features/accounts/sign_in_spec.rb
mtdevise-2.5.5 spec/features/accounts/sign_in_spec.rb
mtdevise-2.5.2 spec/features/accounts/sign_in_spec.rb
mtdevise-2.5.0 spec/features/accounts/sign_in_spec.rb
mtdevise-2.0.5 spec/features/accounts/sign_in_spec.rb
mtdevise-2.0.2 spec/features/accounts/sign_in_spec.rb
mtdevise-2.0.1 spec/features/accounts/sign_in_spec.rb
mtdevise-2.0.0b spec/features/accounts/sign_in_spec.rb
mtdevise-1.8.6 spec/features/accounts/sign_in_spec.rb
mtdevise-1.8.5 spec/features/accounts/sign_in_spec.rb