Sha256: 3bf461f9f1069576d7f8f9f6a9db799aea1885faa06edef9c3c4d4ce72d61b9c
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
require File.join(File.dirname(__FILE__),"../lib/icecream/icecream") require File.dirname(__FILE__) + "/spec_helper" describe "Icecream" do describe "Gets all the objects to factory directory" do it "has objects for each file in the factory filder" do @fridge = IceCream::IceCream.new File.join(File.dirname(__FILE__),"flavors") chocolate = @fridge.flavor :chocolate chocolate.class.should be Chocolate chocolate.name.should eq "chocolate" chocolate.color.should eq :brown chocolate.price.should eq 15.5 chocolate.calories.should eq 150 chocolate.resumo.should eq ["chocolate", 150, :brown, 15.5] cream = @fridge.flavor :cream cream.class.should be Cream cream.name.should eq "cream" cream.color.should eq :yellow cream.price.should eq 17.5 cream.calories.should eq 200 apple = @fridge.flavor :apple apple.class.should be Apple apple.name.should eq "apple" apple.color.should eq :red apple.price.should eq 1.5 apple.calories.should eq 1500 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
icecream-0.0.9 | spec/icecream_spec.rb |