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

Version Path
adminpanel-0.1.1 spec/models/category_spec.rb
adminpanel-0.1.0cl.2 spec/models/category_spec.rb
adminpanel-0.1.0cl spec/models/category_spec.rb
adminpanel-0.1.0 spec/models/category_spec.rb
adminpanel-0.0.7 spec/models/category_spec.rb
adminpanel-0.0.6.1 spec/models/category_spec.rb
adminpanel-0.0.6 spec/models/category_spec.rb