Sha256: 3e1b2b2fd923749335d5e13b93d173b11c7db0cb7f3b0172070fc75783718c92
Contents?: true
Size: 1.03 KB
Versions: 42
Compression:
Stored size: 1.03 KB
Contents
require 'spec_helper' feature 'not found public on app' do let!(:central) { create(:organization, name: 'central') } let!(:base) { create(:organization, name: 'base') } let!(:some_orga) { create(:public_organization, name: 'someorga', profile: profile) } let(:profile) { Mumuki::Domain::Organization::Profile.parse json } let(:json) { { contact_email: 'some@email.com', locale: 'en', errors_explanations: { 404 => 'Some explanation'} } } scenario 'when route does not exist in explicit central' do set_subdomain_host! 'test' visit '/foo' expect(page).to have_text('You may have mistyped the address') end scenario 'when organization does not exist' do set_subdomain_host! 'foo' visit '/' expect(page).to have_text('You may have mistyped the address') end scenario 'when organization has a customized error message' do set_subdomain_host! 'someorga' visit '/foo' expect(page).to have_text('Some explanation') expect(page).not_to have_text('You may have mistyped the address') end end
Version data entries
42 entries across 42 versions & 1 rubygems