2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/spec/components/step_updater_spec.rb

15 lines
381 B
Ruby
Raw Normal View History

2016-08-25 13:14:56 -04:00
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