2016-04-01 05:33:25 +08:00
|
|
|
require 'rails_helper'
|
2015-04-01 00:58:56 +08: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
|