Sha256: a72f4bcf90323decbf9abd8dc2e26dde81c7c07a0ea8fd24d04472a4b2e279b9

Contents?: true

Size: 939 Bytes

Versions: 10

Compression:

Stored size: 939 Bytes

Contents

require File.dirname(__FILE__) + '/common'
require_relative '../lib/blanker.rb'

describe Blanker do

  before(:each) do
    Blanker.startup  
  end
  
  after(:each) do
    Blanker.shutdown
  end

  it "should be able to blank then unblank" do
    Blanker.blank_full_screen! "blank then unblank"
    sleep 0.5
    Blanker.unblank_full_screen!
  end
  
  it "should be able to blank then unblank several times" do
    3.times {
      Blanker.blank_full_screen! 'unblank several times'
      Blanker.unblank_full_screen!
    }
  end
  
  it "should be able to unblank several times in a row I suppose" do
    3.times {
      Blanker.unblank_full_screen!
    }
  end
  
  describe "future work", :pending => true do
    
    it "should be able to blank certain coords"
    
    it "should have a background color specificable"
    
    it "should have a picture overlay optionally"
    
  end
  
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sensible-cinema-0.17.0 spec/blanker.spec.rb
sensible-cinema-0.16.7 spec/blanker.spec.rb
sensible-cinema-0.16.5 spec/blanker.spec.rb
sensible-cinema-0.16.3 spec/blanker.spec.rb
sensible-cinema-0.16.2 spec/blanker.spec.rb
sensible-cinema-0.16.1 spec/blanker.spec.rb
sensible-cinema-0.15.0 spec/blanker.spec.rb
sensible-cinema-0.14.6 spec/blanker.spec.rb
sensible-cinema-0.14.5 spec/blanker.spec.rb
sensible-cinema-0.14.4 spec/blanker.spec.rb