File: configuration.rb

package info (click to toggle)
ruby-shoulda-context 2.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 476 kB
  • sloc: ruby: 1,712; sh: 200; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Shoulda
  module Context
    def self.configure
      yield self
    end

    def self.include(mod)
      test_framework_test_cases.each do |test_case|
        test_case.class_eval { include mod }
      end
    end

    def self.extend(mod)
      test_framework_test_cases.each do |test_case|
        test_case.extend(mod)
      end
    end
  end
end