Sha256: 000f84ba2568d89d7d095445497be8d2a626e21b599298cecdced635f54925ac

Contents?: true

Size: 601 Bytes

Versions: 4

Compression:

Stored size: 601 Bytes

Contents

describe Liner::Base do
  describe :initialize do
    it "should accept key/value pairs" do
      beer = Beer.new(hops: 'Cascade', yeast: 'Top Fermenting')
      beer.hops.must_equal 'Cascade'
      beer.yeast.must_equal 'Top Fermenting'
    end
    it "should accept a list of values" do
      burger = Cheeseburger.new('Sesame Seed', 'Soy', 'Cheddar')
      burger.bun.must_equal 'Sesame Seed'
      burger.cheese.must_equal 'Cheddar'
    end
    it "should accept no arguments" do
      burger = Cheeseburger.new
      burger.bun.must_equal nil
      burger.cheese.must_equal nil
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
liner-0.2.2 test/liner/base_test.rb
liner-0.2.1 test/liner/base_test.rb
liner-0.2.0 test/liner/base_test.rb
liner-0.1.2 test/liner/base_test.rb