Sha256: 0ab3c9b7ee5b1123bfd1528c28145ddb35534835e3370a73f78a4b456064f6f8
Contents?: true
Size: 1.05 KB
Versions: 18
Compression:
Stored size: 1.05 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', time_zone: 'Brasilia', 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
18 entries across 18 versions & 1 rubygems