Method: Eg::ExampleTests#right

Defined in:
lib/eg/example_tests.rb

#right(arg0 = nil) ⇒ Object

The right method is more complicated than the one in the original Java FIT version because Ruby does not see different methods based on the number of their arguments: here, ExampleTests#right shadows Fixture#right, so it must serve two roles at the same time.



41
42
43
44
45
46
47
48
# File 'lib/eg/example_tests.rb', line 41

def right arg0 = nil
  unless arg0.nil?
    super
  else
    run
    @fixture.counts.right
  end
end