mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Wizard: Step 1
This commit is contained in:
14
spec/components/step_updater_spec.rb
Normal file
14
spec/components/step_updater_spec.rb
Normal 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
|
Reference in New Issue
Block a user