Sha256: 07b781a0daf72e0cb819c86008491804c87136a644f59d9e41218ed29decb17c

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

require 'spec_helper'
require 'open3'
require 'pry'

describe 'doctest helper methods' do

  it 'performs tests' do
    stdout_str, stderr_str, status = Open3.capture3('rspec spec/fixtures/specfile_with_doctests.rb')
    expect(stderr_str).to be_empty
    expect(stdout_str.lines).to include("1 example, 1 failure\n")
    expect(status.exitstatus).to equal 1
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
doctest-rspec-0.0.3 spec/lib/doctest/rspec/doctest_helpers_spec.rb