discourse/spec/components/new_post_result_spec.rb
2016-03-31 17:40:54 -04:00

13 lines
238 B
Ruby

require 'rails_helper'
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