0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/spec/lib/new_post_result_spec.rb
2023-01-09 11:49:28 +00:00

11 lines
250 B
Ruby
Vendored

# frozen_string_literal: true
require "new_post_result"
RSpec.describe NewPostResult do
it "fails by default" do
result = NewPostResult.new(:eviltrout)
expect(result.failed?).to eq(true)
expect(result.success?).to eq(false)
end
end