mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 21:34:23 +08:00
12 lines
250 B
Ruby
12 lines
250 B
Ruby
# 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
|