File: sample_fake.rb

package info (click to toggle)
ruby-bogus 0.1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 844 kB
  • sloc: ruby: 4,237; makefile: 8; sh: 2
file content (16 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Samples
  class Foo
    def foo(a, b)
      "the real foo: #{a} #{b}"
    end

    def bar
      "the real bar"
    end

    def with_optional_args(a, b = :opt)
    end
  end

  FooFake = Bogus::Injector.new.copies_classes.copy(Foo)
end