Sha256: 17ee104f7095464ce5b7915af828b8382bce6e045414ffc93f6fb94acab08a89
Contents?: true
Size: 324 Bytes
Versions: 3
Compression:
Stored size: 324 Bytes
Contents
module MockedFixtures class MockFactory class << self # Create mock object from fixture def create_mock(type, model_class, fixture, testcase) testcase.send("mock_model_with_#{type}", model_class, { :all_attributes => true, :add_errors => true }.merge(fixture) ) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mocked_fixtures-0.2.0 | lib/mocked_fixtures/mock_factory.rb |
mocked_fixtures-0.3.0 | lib/mocked_fixtures/mock_factory.rb |
mocked_fixtures-0.1.0 | lib/mocked_fixtures/mock_factory.rb |