Sha256: 255c9dc3a5b75e441f6d19438cf9a67b6bc0e10d4ec6f6f234f471e605ece485

Contents?: true

Size: 514 Bytes

Versions: 16

Compression:

Stored size: 514 Bytes

Contents

require 'screen'

require 'spec_helper'

describe Screen do
  describe ".clear!" do
    subject(:clear!) { klass.clear! }

    it "clears the screen" do
      Screen.should_receive(:print).with("\e[2J\e[f")

      clear!
    end
  end

  describe ".height" do
    subject(:height) { klass.height }

    it "returns the height" do
      height.should be_nonzero
    end
  end

  describe ".width" do
    subject(:width) { klass.width }

    it "returns the width" do
      width.should be_nonzero
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
tp-0.6.2 spec/lib/screen_spec.rb
tp-0.6.2pre2 spec/lib/screen_spec.rb
tp-0.6.2pre1 spec/lib/screen_spec.rb
tp-0.6.1 spec/lib/screen_spec.rb
tp-0.6.0 spec/lib/screen_spec.rb
tp-0.5.1 spec/lib/screen_spec.rb
tp-0.5.0 spec/lib/screen_spec.rb
tp-0.4.1 spec/lib/screen_spec.rb
tp-0.4.0 spec/lib/screen_spec.rb
tp-0.3.1 spec/lib/screen_spec.rb
tp-0.3.0 spec/lib/screen_spec.rb
tp-0.2.1 spec/lib/screen_spec.rb
tp-0.2.0 spec/lib/screen_spec.rb
tp-0.1.1 spec/lib/screen_spec.rb
tp-0.1.0 spec/lib/screen_spec.rb
tp-0.0.2 spec/lib/screen_spec.rb