Sha256: e282dc3b6661f10cc0e4fa9355e3132954d2e22c41e3aafa91880514860f2514
Contents?: true
Size: 1.76 KB
Versions: 11
Compression:
Stored size: 1.76 KB
Contents
require_relative "../../helper.rb" describe Gosu::Window do before :all do $window ||= Gosu::Window.new 16, 16, false end # Class methods. describe "Window.pixel" do it "should be a 1x1 image" do described_class.pixel.should be_kind_of Gosu::Image described_class.pixel.width.should eq 1 described_class.pixel.height.should eq 1 end it "should be white" do described_class.pixel[0, 0].should eq [1.0, 1.0, 1.0, 1.0] end end describe "Window.primary_buffer" do it "should be a window sized buffer" do described_class.primary_buffer.should be_kind_of Ashton::WindowBuffer end end describe "Window.secondary_buffer" do it "should be a window sized buffer" do described_class.secondary_buffer.should be_kind_of Ashton::WindowBuffer end it "should not be the same as the primary buffer" do described_class.secondary_buffer.should_not eq described_class.primary_buffer end end # Instance methods describe "post_process" do pending end describe "pixel" do it "should be a 1x1 image" do $window.pixel.should be_kind_of Gosu::Image $window.pixel.width.should eq 1 $window.pixel.height.should eq 1 end it "should be white" do $window.pixel[0, 0].should eq [1.0, 1.0, 1.0, 1.0] end end describe "primary_buffer" do it "should be a window sized buffer" do $window.primary_buffer.should be_kind_of Ashton::WindowBuffer end end describe "secondary_buffer" do it "should be a window sized buffer" do $window.secondary_buffer.should be_kind_of Ashton::WindowBuffer end it "should not be the same as the primary buffer" do $window.secondary_buffer.should_not eq $window.primary_buffer end end end
Version data entries
11 entries across 11 versions & 2 rubygems