tack2us/spec/models/paste_spec.rb

18 lines
301 B
Ruby

require 'spec_helper'
describe Paste do
before do
@paste = FactoryGirl.create(:paste)
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