Module: Autotest::AutotestHelper

Defined in:
lib/gems/rspec-1.1.11/spec/autotest/rspec_spec.rb

Instance Method Summary collapse

Instance Method Details

#common_setupObject



26
27
28
29
30
31
32
33
34
35
36
# File 'lib/gems/rspec-1.1.11/spec/autotest/rspec_spec.rb', line 26

def common_setup
  @proc = mock Proc
  @kernel = mock Kernel
  @kernel.stub!(:proc).and_return @proc

  File.stub!(:exists).and_return true
  @windows_alt_separator = "\\"
  @posix_separator = '/'

  @rspec_output = rspec_output
end

#rspec_outputObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/gems/rspec-1.1.11/spec/autotest/rspec_spec.rb', line 6

def rspec_output
  <<-HERE
.............PPF

1)
'false should be false' FAILED
expected: true,
 got: false (using ==)
./spec/autotest/rspec_spec.rb:203:

Finished in 0.158674 seconds

16 examples, 1 failure, 2 pending

Pending:
Autotest::Rspec handling failed results should return an array of failed examples and errors (TODO)
Autotest::Rspec tests/specs for a given file should find all the specs for a given file (TODO)
HERE
end