Sha256: 9272781eaf6b328b0d7933d19f0eb5d43d60414bbdfda00df6c7db85c9a86c33
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
# encoding: utf-8 # This file is part of ruby-flores. # Copyright (C) 2015 Jordan Sissel # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. require "flores/rspec" require "flores/random" RSpec.configure do |c| Flores::RSpec.configure(c) c.add_formatter("Flores::RSpec::Formatters::Analyze") end describe "a random number" do context "between 0 and 200 inclusive" do let(:number) { Flores::Random.number(0..200) } analyze_results stress_it "should be less than 100" do expect(number).to(be < 100) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flores-0.0.3 | examples/analyze_number.rb |