spec/actors/label_spec.rb in gamebox-0.4.0 vs spec/actors/label_spec.rb in gamebox-0.4.1

- old
+ new

@@ -28,15 +28,15 @@ height: 0, layer: 1) @font_style_factory.stubs(:build).with('fonty.ttf', 22, :red).returns(:stylish_font) @actor.expects(:has_attributes).with(font_style: :stylish_font) - subject.setup + subject end it 'listens for text changes' do - subject.setup + subject @actor.stubs(text: "foo") font_style = stub(height: 13) font_style.stubs(:calc_width).with("foo").returns(73) @actor.stubs(font_style: font_style) @@ -46,20 +46,20 @@ @actor.fire :text_changed end it 'listens for font color changes' do - subject.setup + subject font_style = stub font_style.expects(:color=).with(:red) @actor.stubs(font_style: font_style, color: :red) @actor.fire :color_changed end it 'listens for font name changes' do - subject.setup + subject @actor.stubs(text: "foo", font_name: "asimov.ttf") font_style = stub(height: 13) font_style.stubs(:calc_width).with("foo").returns(73) @@ -72,10 +72,10 @@ @actor.fire :font_name_changed end it 'listens for font size changes' do - subject.setup + subject @actor.stubs(text: "foo", font_size: 14) font_style = stub(height: 13) font_style.stubs(:calc_width).with("foo").returns(73)