Sha256: cf4f7f15c30c20a8a9c8c3545bf80ed40980a2a6bbeb0652e744a3b124b3e327
Contents?: true
Size: 656 Bytes
Versions: 42
Compression:
Stored size: 656 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../test_helper") require 'hardmock/expectation_builder' class ExpectationBuilderTest < Test::Unit::TestCase include Hardmock def test_build_expectation builder = ExpectationBuilder.new ex = builder.build_expectation( :stuff => 'inside' ) assert_not_nil ex, "Didn't build an expectation" assert_kind_of Expectation, ex, "Wrong type!" # Shhhh... fragile, yes, whatever. The functional tests do the # real testing of this anyway assert_equal({:stuff => 'inside'}, ex.instance_variable_get('@options'), "Hash not sent to SimpleExpectation constructor") end end
Version data entries
42 entries across 39 versions & 3 rubygems