discourse/spec/components/new_post_result_spec.rb

Failed to ignore revisions in .git-blame-ignore-revs.

15 lines
269 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'rails_helper'
require 'new_post_result'
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