2019-04-29 20:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-10-11 05:41:23 -04:00
|
|
|
require 'rails_helper'
|
2015-03-31 12:58:56 -04: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
|