Sha256: 0a84fa683e370a7ba9ee4f1d0a16c8a1c58f72cedfebe50f9a5beab965cabde0
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
# Initially generated with PgRails::SystemSpecGenerator # https://github.com/martin-rosso/pg_rails require 'rails_helper' # By default uses selenium_chrome_headless_iphone driver # run with DRIVER environment variable to override, eg: # # DRIVER=selenium rspec describe 'Tenants' do subject(:visitar) do visit '/u/cosas' end let(:logged_user) { create :user } before do login_as logged_user end describe 'switcher' do it do visitar expect(page).to have_text 'No hay cosos que mostrar' end context 'when belongs to multiple accounts' do let(:other_account) { create :account } before do logged_user.user_accounts.create!(account: other_account) end it 'shows the switcher' do visitar expect(page).to have_text 'Switcher' end it 'switches to account' do visitar click_on other_account.to_s visit '/u/categoria_de_cosas' expect(page).to have_text 'No hay categorÃas de cosas que mostrar' end it 'shows the profile form' do visit '/users/edit' expect(page).to have_text 'Editar Usuario' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pg_rails-7.5.2 | pg_engine/spec/system/tenants_spec.rb |