diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-03-13 17:43:33 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-03-13 17:44:24 +0000 |
commit | 0ec573f4c5705ecce51ebe637750301fa57e3d1f (patch) | |
tree | ed1d18a6539f697fcd18aec6007f5d096628b327 /spec/lib/confidence_intervals.rb | |
parent | 5a435dfcb699b4f7b7d431cafc479ad92dcd6060 (diff) |
Rename spec files so they're run by rake spec.
Diffstat (limited to 'spec/lib/confidence_intervals.rb')
-rw-r--r-- | spec/lib/confidence_intervals.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/spec/lib/confidence_intervals.rb b/spec/lib/confidence_intervals.rb deleted file mode 100644 index cb8717f3d..000000000 --- a/spec/lib/confidence_intervals.rb +++ /dev/null @@ -1,30 +0,0 @@ -require 'confidence_intervals' - -describe "ci_bounds" do - - describe "when passed all successes" do - it "should never return a high CI above 1" do - ci = ci_bounds 16, 16, 0.01 - ci[1].should be <= 1 - end - end - - describe "when passed all failures" do - it "should never return a low CI below 0" do - ci = ci_bounds 0, 10, 0.05 - ci[0].should be >= 0 - end - end - - describe "when passed 4 out of 10 successes (with 0.05 power)" do - it "should return the correct Wilson's interval" do - # The expected results here were taken from an online - # calculator: - # http://www.vassarstats.net/prop1.html - ci = ci_bounds 7, 10, 0.05 - ci[0].should be_within(0.001).of(0.3968) - ci[1].should be_within(0.001).of(0.8922) - end - end - -end |