Wizard: Step 1

This commit is contained in:
Robin Ward
2016-08-25 13:14:56 -04:00
parent 0471ad393c
commit 3a4615c205
50 changed files with 1103 additions and 80 deletions

View File

@ -0,0 +1,14 @@
require 'rails_helper'
require_dependency 'wizard/step_updater'
describe Wizard::StepUpdater do
let(:user) { Fabricate(:admin) }
it "can update the forum title" do
updater = Wizard::StepUpdater.new(user, 'forum_title')
updater.update(title: 'new forum title')
expect(updater.success?).to eq(true)
expect(SiteSetting.title).to eq("new forum title")
end
end