Sha256: a6a6f07ea2bc1d5ccd9c0e1b8cc91fe0699782e1bfc9c74e826f61276cd4a7cd
Contents?: true
Size: 779 Bytes
Versions: 3
Compression:
Stored size: 779 Bytes
Contents
#!/usr/bin/env ruby # Business::TestCompany -- de.oddb.org -- 22.11.2006 -- hwyss@ywesee.com $: << File.expand_path('../../lib', File.dirname(__FILE__)) require 'flexmock' require 'test/unit' require 'oddb/business/company' module ODDB module Business class TestCompany < Test::Unit::TestCase include FlexMock::TestCase def setup @company = Company.new end def test_packages prod1 = flexmock('product') prod2 = flexmock('product') @company.add_product(prod1) @company.add_product(prod2) prod1.should_receive(:packages).and_return(['foo', 'bar']) prod2.should_receive(:packages).and_return(['baz']) assert_equal(['foo', 'bar', 'baz'], @company.packages) end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
de.oddb-2.0.1 | test/business/test_company.rb |
ramaze.ch.oddb.org-1.0.0 | test/business/test_company.rb |
de.oddb-2.0.0 | test/business/test_company.rb |