Sha256: e031002ba78bf7548c6a5014536ffdc0358db4e4f203a4775033df297321a7c8

Contents?: true

Size: 773 Bytes

Versions: 11

Compression:

Stored size: 773 Bytes

Contents

require 'spec_helper'

describe Adminpanel::Product do
	# before do
	# 	@product = Adminpanel::Product.new(
	# 		:description => "Test description for product",
	# 		:name => "product name",
	# 		:brief => "short description"
	# 	)
	# end

	# subject { @product }

	# it { should respond_to(:name) }
	# it { should respond_to(:description) }
	# it { should respond_to(:brief) }	

	# end	

	# describe "when no name present" do
	# 	before {@product.name = " "}
	# 	it {should_not be_valid}
	# end

	# describe "when no description present" do
	# 	before {@product.description = " "}
	# 	it {should_not be_valid}
	# end

	# 	it {should_not be_valid}
	# end

	# describe "when no brief is present" do
	# 	before {@product.brief = " "}
	# 	it {should_not be_valid}
	# end


end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
adminpanel-1.2.9 spec/models/product_spec.rb
adminpanel-1.2.8 spec/models/product_spec.rb
adminpanel-1.2.7 spec/models/product_spec.rb
adminpanel-1.2.6 spec/models/product_spec.rb
adminpanel-1.2.5 spec/models/product_spec.rb
adminpanel-1.2.4 spec/models/product_spec.rb
adminpanel-1.2.3 spec/models/product_spec.rb
adminpanel-1.2.2 spec/models/product_spec.rb
adminpanel-1.2.1 spec/models/product_spec.rb
adminpanel-1.2.0 spec/models/product_spec.rb
adminpanel-1.1.0 spec/models/product_spec.rb