Sha256: 5f050accc73870e4ed7fe241d3b22db575d5adba8c52ef41cf00bdf0d3ca04ac

Contents?: true

Size: 457 Bytes

Versions: 4

Compression:

Stored size: 457 Bytes

Contents

require File.expand_path(File.dirname(__FILE__)) + '/helpers.rb'

context "an image target" do
  img = Ray::Image.new [50, 50]
  setup { Ray::ImageTarget.new img }

  asserts(:size).equals Ray::Vector2[50, 50]

  context "after draw & update" do
    hookup do
      topic.clear Ray::Color.red
      topic.update
    end

    asserts("color of image") { img[0, 0] }.equals Ray::Color.red
  end
end if Ray::ImageTarget.available?

run_tests if __FILE__ == $0

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ray-0.2.1 test/image_target_test.rb
ray-0.2.0 test/image_target_test.rb
ray-0.1.1 test/image_target_test.rb
ray-0.1.0 test/image_target_test.rb