szarski/Fixturized — Issue #2: Fix for ruby 1.9.2
Author: piotrj
Created: 2011-10-21 09:37:05+00:00
State: open

3 tests fail for ruby 1.9.2

Failures:

1) Fixturized::Wrapper call should accept and pass arguments
Failure/Error: @called = true
ArgumentError:
wrong number of arguments (2 for 0)
# ./spec/modules/wrapper_spec.rb:43:in `block (4 levels) in '
# ./lib/wrapper.rb:18:in `call'
# ./lib/wrapper.rb:18:in `block in call'
# ./lib/wrapper.rb:17:in `each'
# ./lib/wrapper.rb:17:in `call'
# ./spec/modules/wrapper_spec.rb:58:in `block (3 levels) in '

2) Fixturized::Wrapper call should collect instance variables
Failure/Error: @wrapper.instance_variables.should include("@new_var")
expected {:@called=>true, :@new_var=>#, :@new_var2=>#} to include "@new_var"
Diff:
@@ -1,2 +1,4 @@
-@new_var
+{:@called=>true,
+ :@new_var=>#,
+ :@new_var2=>#}
# ./spec/modules/wrapper_spec.rb:75:in `block (3 levels) in '

3) Fixturized::Wrapper call should collect constants
Failure/Error: wrapper.constants.should == {"B" => 3, "C" => 4}
expected: {"B"=>3, "C"=>4}
got: {:B=>3, :C=>4} (using ==)
Diff:
@@ -1,2 +1,2 @@
-{"B"=>3, "C"=>4}
+{:B=>3, :C=>4}
# ./spec/modules/wrapper_spec.rb:85:in `block (3 levels) in '