discourse/spec/lib/new_post_result_spec.rb
2022-07-28 10:27:38 +08:00

14 lines
252 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