Sha256: 8cf60e6374031d009a38e8b6846949c1d9ac3425c9159fcc93779326f4b42f73
Contents?: true
Size: 408 Bytes
Versions: 7
Compression:
Stored size: 408 Bytes
Contents
require 'spec_helper' describe Adminpanel::Category do before do @category = Adminpanel::Category.new( :name => "Test category" ) end subject { @category} it {should respond_to(:name) } describe "when name is not present" do before {@category.name = " "} it {should_not be_valid} end end
Version data entries
7 entries across 7 versions & 1 rubygems