2015-10-11 04:41:23 -05:00
|
|
|
require 'rails_helper'
|
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
|