Sha256: d53b2ec35fce9cae4c37f6be30e3ce14074f2868eb7c98722b93614db9468493

Contents?: true

Size: 933 Bytes

Versions: 9

Compression:

Stored size: 933 Bytes

Contents

require_relative "spec_helper"

require "stringio"

require "cute_print"

# This spec tests the parts of the library, as the user sees it, that
# are not covered by a Cucumber feature.
#
# The other specs test internals.

describe CutePrint do

  before(:each) do
    CutePrint.configure { |c| c.reset }
  end

  describe "#q" do
    When(:stderr) do
      capture_stderr do
        @result = q 123
      end
    end
    Then { expect(@result).to be_nil }
  end

  describe "#ql" do
    When(:stderr) do
      capture_stderr do
        @result = ql 123
      end
    end
    Then { expect(@result).to be_nil }
  end

  describe "#qq" do
    When do
      @stderr = capture_stderr do
        @result = qq 123
      end
    end
    Then { expect(@result).to be_nil }
  end

  describe "#qql" do
    When do
      @stderr = capture_stderr do
        @result = qql 123
      end
    end
    Then { expect(@result).to be_nil }
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cute_print-1.1.4 spec/cute_print_spec.rb
cute_print-1.1.3 spec/cute_print_spec.rb
cute_print-1.1.2 spec/cute_print_spec.rb
cute_print-1.1.1 spec/cute_print_spec.rb
cute_print-1.1.0 spec/cute_print_spec.rb
cute_print-1.0.1 spec/cute_print_spec.rb
cute_print-1.0.0 spec/cute_print_spec.rb
cute_print-0.4.0 spec/cute_print_spec.rb
cute_print-0.3.0 spec/cute_print_spec.rb