Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 32 lines (24 sloc) 0.637 kb
4f0fd0b @gcao Rescue undefined method error
authored
1 ENV["ASPECTOR_LOG_LEVEL"] ||= "warn"
2
4960d64 @gcao Initial commit to aspector.
authored
3 $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
4 $LOAD_PATH.unshift(File.dirname(__FILE__))
35bc103 @gcao Get travis build to pass, exclude rubinius for now
authored
5 require 'rubygems'
4960d64 @gcao Initial commit to aspector.
authored
6 require 'rspec'
e69b6f5 @gcao Fix errors related to special chars in method name
authored
7 require 'rspec/autorun'
4960d64 @gcao Initial commit to aspector.
authored
8 require 'aspector'
9
10 # Requires supporting files with custom matchers and macros, etc,
11 # in ./support/ and its subdirectories.
12 Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
13
14 RSpec.configure do |config|
15 end
e6eb39c @gcao Refactor functional specs
authored
16
17 def create_test_class &block
18 klass = Class.new do
19 def value
20 @value ||= []
21 end
22
23 def test
24 value << "test"
25 end
26 end
27
28 klass.class_eval &block if block_given?
29 klass
30 end
31
Something went wrong with that request. Please try again.