Sha256: 917f008d4ca9d698b9da1381f4b6de4533e14fb3f15030d279c592663857c8d7
Contents?: true
Size: 507 Bytes
Versions: 13
Compression:
Stored size: 507 Bytes
Contents
require 'helper' describe FontStyleFactory do describe "#build" do inject_mocks :this_object_context let(:style) { stub } before do @this_object_context.stubs(:in_subcontext).yields(@this_object_context) @this_object_context.stubs(:[]).with('font_style').returns style end it 'pulls the font style from the context and configures it' do style.expects(:configure).with('arial', 22, :purple, 2, 0.5) subject.build 'arial', 22, :purple, 2, 0.5 end end end
Version data entries
13 entries across 13 versions & 1 rubygems