Sha256: 5d19f10aafbecc580407bb6eaf28f1c27bd2a2647ce2422ee664a2b6a7f6b5d2

Contents?: true

Size: 655 Bytes

Versions: 26

Compression:

Stored size: 655 Bytes

Contents

require "spec_helper"

describe "failed_results_re for autotest" do
  let(:output) { StringIO.new }
  let(:formatter) { RSpec::Core::Formatters::BaseTextFormatter.new(output) }
  let(:example_output) do
    group = RSpec::Core::ExampleGroup.describe("group name")
    group.example("example name") { "this".should eq("that") }
    group.run(formatter)
    RSpec.configuration.stub(:color_enabled?) { false }
    formatter.dump_failures
    output.string
  end

  it "matches a failure" do
    re = Autotest::Rspec2.new.failed_results_re
    example_output.should =~ re
    example_output[re, 2].should == __FILE__.sub(File.expand_path('.'),'.')
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/autotest/failed_results_re_spec.rb
rspec-core-2.4.0 spec/autotest/failed_results_re_spec.rb
vim-jar-0.1.2 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/autotest/failed_results_re_spec.rb
vim-jar-0.1.1 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/autotest/failed_results_re_spec.rb
vim-jar-0.1.0 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/autotest/failed_results_re_spec.rb
rspec-core-2.3.1 spec/autotest/failed_results_re_spec.rb
rspec-core-2.3.0 spec/autotest/failed_results_re_spec.rb
vim-jar-0.0.3 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/autotest/failed_results_re_spec.rb
rspec-core-2.2.1 spec/autotest/failed_results_re_spec.rb
vim-jar-0.0.2 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/autotest/failed_results_re_spec.rb
vim-jar-0.0.1 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/autotest/failed_results_re_spec.rb
rspec-core-2.2.0 spec/autotest/failed_results_re_spec.rb
rspec-core-2.1.0 spec/autotest/failed_results_re_spec.rb
rspec-core-2.0.1 spec/autotest/failed_results_re_spec.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/autotest/failed_results_re_spec.rb
gemrage-0.4.1 vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/autotest/failed_results_re_spec.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/autotest/failed_results_re_spec.rb
gemrage-0.3.2 vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/autotest/failed_results_re_spec.rb
gemrage-0.3.1 vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/autotest/failed_results_re_spec.rb
gemrage-0.3.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/autotest/failed_results_re_spec.rb