mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
13 lines
237 B
Ruby
13 lines
237 B
Ruby
|
require 'spec_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
|