2014-02-14 15:54:22 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe Paste do
|
|
|
|
before do
|
2014-02-14 16:40:15 -05:00
|
|
|
@paste = FactoryGirl.create(:paste)
|
2014-02-14 15:54:22 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
subject { @paste }
|
|
|
|
|
|
|
|
it { should respond_to(:content) }
|
|
|
|
|
|
|
|
it { should be_valid }
|
|
|
|
|
|
|
|
describe "when content is blank" do
|
|
|
|
before { @paste.content = " " }
|
|
|
|
it { should_not be_valid }
|
|
|
|
end
|
|
|
|
end
|