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

Version Path
gamebox-0.5.5 spec/core/font_style_factory_spec.rb
gamebox-0.5.4 spec/core/font_style_factory_spec.rb
gamebox-0.5.2 spec/core/font_style_factory_spec.rb
gamebox-0.5.1 spec/core/font_style_factory_spec.rb
gamebox-0.5.0 spec/core/font_style_factory_spec.rb
gamebox-0.4.1 spec/core/font_style_factory_spec.rb
gamebox-0.4.0 spec/core/font_style_factory_spec.rb
gamebox-0.4.0.rc11 spec/core/font_style_factory_spec.rb
gamebox-0.4.0.rc5 spec/core/font_style_factory_spec.rb
gamebox-0.4.0.rc4 spec/core/font_style_factory_spec.rb
gamebox-0.4.0.rc3 spec/core/font_style_factory_spec.rb
gamebox-0.4.0.rc2 spec/core/font_style_factory_spec.rb
gamebox-0.4.0.rc1 spec/core/font_style_factory_spec.rb