Sha256: 34e5992788aec3ab81779701b1121659785dbc81d25a2eba4bd00b2a3720488b
Contents?: true
Size: 384 Bytes
Versions: 7
Compression:
Stored size: 384 Bytes
Contents
# frozen_string_literal: true require 'MonkeyFactory' describe 'MonkeyFactory' do context 'create' do it 'instantiates an object from the factory' do MonkeyFactory.create(:harpo).is_a?(Monkey).should be true end it 'does not instantiate an object without using the factory' do -> { Monkey.new :groucho }.should raise_error NoMethodError end end end
Version data entries
7 entries across 7 versions & 1 rubygems