mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FEATURE: add new 'convert to staff message' in post wrench menu
This commit is contained in:
@@ -70,4 +70,12 @@ describe PostRevision do
|
||||
changes[:current_wiki].should be_true
|
||||
end
|
||||
|
||||
it "can find post_type changes" do
|
||||
r = create_rev("post_type" => [1, 2])
|
||||
|
||||
changes = r.post_type_changes
|
||||
changes[:previous_post_type].should == 1
|
||||
changes[:current_post_type].should == 2
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user