UX: Wiggle invalid form elements. Don't allow a site title of Discourse

This commit is contained in:
Robin Ward
2016-09-15 16:01:44 -04:00
parent 2ff6295f71
commit 74ed2e82ac
4 changed files with 33 additions and 2 deletions

View File

@ -38,6 +38,13 @@ describe Wizard::StepUpdater do
expect(wizard.completed_steps?('forum-title')).to eq(true)
end
it "won't allow updates to the default value, when required" do
updater = wizard.create_updater('forum_title', title: SiteSetting.title, site_description: 'neat place')
updater.update
expect(updater.success?).to eq(false)
end
context "privacy settings" do
it "updates to open correctly" do
updater = wizard.create_updater('privacy', privacy: 'open')