2019-04-29 19:27:42 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-03-31 11:58:56 -05:00
|
|
|
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
|