Sha256: e2125afeb271b96fedf2a207c58f469d1719d5ee252130330d35d062f167bee3

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

Stored size: 475 Bytes

Contents

require 'swt_shoes/spec_helper'

describe Shoes::Swt::ImagePattern do
  let(:path) { File.join Shoes::DIR, 'static/shoes-icon.png'  }
  let(:dsl) { Shoes::ImagePattern.new(path) }

  subject { Shoes::Swt::ImagePattern.new(dsl) }

  it_behaves_like "an swt pattern"

   describe "#apply_as_fill" do
    let(:gc) { double("gc") }

    it "sets background" do
      gc.should_receive(:set_background_pattern)
      subject.apply_as_fill(gc, 10, 20, 100, 200)
    end
  end 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.pre1 spec/swt_shoes/image_pattern_spec.rb