Permalink
Browse files

Test spec fix, we now store extras by variant id instead of test id

  • Loading branch information...
winton committed Mar 25, 2010
1 parent 85ffd80 commit a7b6b40abd99341434730a01d7dccac311210ea3
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/a_b_plugin/test_spec.rb
@@ -76,9 +76,9 @@
it "should accept a hash with extra boolean values" do
a_b(:test).visit(:v1, :e => true)
- JSON($cookies['a_b']).should == {"v"=>{"1"=>2},"e"=>{"1"=>{"e"=>true}}}
+ JSON($cookies['a_b']).should == {"v"=>{"1"=>2},"e"=>{"2"=>{"e"=>true}}}
a_b(:test).visit(:e2 => true)
- JSON($cookies['a_b']).should == {"v"=>{"1"=>2},"e"=>{"1"=>{"e"=>true,"e2"=>true}}}
+ JSON($cookies['a_b']).should == {"v"=>{"1"=>2},"e"=>{"2"=>{"e"=>true,"e2"=>true}}}
end
end
@@ -144,9 +144,9 @@
it "should accept a hash with extra boolean values" do
a_b(:test).convert(:v1, :e => true)
- JSON($cookies['a_b']).should == {"v"=>{"1"=>2},"c"=>{"1"=>2},"e"=>{"1"=>{"e"=>true}}}
+ JSON($cookies['a_b']).should == {"v"=>{"1"=>2},"c"=>{"1"=>2},"e"=>{"2"=>{"e"=>true}}}
a_b(:test).convert(:e2 => true)
- JSON($cookies['a_b']).should == {"v"=>{"1"=>2},"c"=>{"1"=>2},"e"=>{"1"=>{"e"=>true,"e2"=>true}}}
+ JSON($cookies['a_b']).should == {"v"=>{"1"=>2},"c"=>{"1"=>2},"e"=>{"2"=>{"e"=>true,"e2"=>true}}}
end
end
end

0 comments on commit a7b6b40

Please sign in to comment.