mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-06-05 21:15:20 +00:00
- attempt to go with notation in test_helper that is compatible with pre 1.9 versions of Ruby
- add 1.8.7 to the Travis test setup
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
language: ruby
|
||||
rvm:
|
||||
- "1.8.7"
|
||||
- "1.9.3"
|
||||
- "2.0.0"
|
||||
install:
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ end
|
||||
def create_stub(funcs)
|
||||
stub = Class.new
|
||||
funcs.each_pair do |k,v|
|
||||
stub.define_singleton_method(k) {|unused=nil| return v }
|
||||
stub.define_singleton_method(k) {|*unused| return v }
|
||||
end
|
||||
stub
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user