Add about page, remove enquete from menu

This commit is contained in:
2013-01-13 13:30:42 +01:00
parent afe7f9d2fc
commit 26810defcd
6 changed files with 57 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
# encoding: UTF-8
require 'spec_helper'
describe Qwaiter::Distribution do
describe 'distribute_lattice' do
{
[20 , 10, 4] => [10.0, 5.0],
[10 , 10, 4] => [ 5.0, 5.0],
[20 , 5, 4] => [ 5.0, 5.0],
[30 , 10, 4] => [ 7.5, 10.0],
[10 , 30, 4] => [10.0, 7.5],
[10 , 10, 3] => [ 5.0, 5.0],
[13.6, 40, 7] => [ 6.8, 10.0],
[13.6, 40, 9] => [ 6.8, 8.0],
[13.6, 40, 10] => [ 6.8, 8.0],
[40, 40, 23] => [ 8.0, 8.0],
}.each do |params, result|
it("handles #{params.join(', ')}"){ Qwaiter::Distribution.distribute_lattice(*params).should == result }
end
end
end