Sha256: 9fe4d7bea416b4862c20fd65079ae31abe81e851bce145552aae4d2268b0dfde
Contents?: true
Size: 1.13 KB
Versions: 40
Compression:
Stored size: 1.13 KB
Contents
require 'spec_helper' feature 'not found public on app' do let!(:central) { create(:organization, name: 'central') } 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 routes does not exist in implicit central' do visit '/foo' expect(page).to have_text('You may have mistyped the address') end 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
40 entries across 40 versions & 1 rubygems