2015-10-11 17:41:23 +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
|