Sha256: befc464827c574e72352ebcc2cf1a7925f1ddf8775348b37ddae5cf6e9edb3cd

Contents?: true

Size: 541 Bytes

Versions: 3

Compression:

Stored size: 541 Bytes

Contents

require File.join(File.dirname(__FILE__),"../lib/icecream/icecream")

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

      cream = @fridge.flavor :cream
      cream.class.should be Cream

      apple = @fridge.flavor :apple
      apple.class.should be Apple
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
icecream-0.0.4 spec/icecream_spec.rb
icecream-0.0.3 spec/icecream_spec.rb
icecream-0.0.2 spec/icecream_spec.rb