Sha256: 44163f3735f266ea5ac3a882bc5994cd16462797143990b8eb6284931c946ec9
Contents?: true
Size: 781 Bytes
Versions: 6
Compression:
Stored size: 781 Bytes
Contents
require "spec_helper" require "set" describe Vamp do it "has a version number" do expect(Vamp::VERSION).not_to be nil end it "has a vampire" do expect(Vamp::VAMPIRE).not_to be nil end it "gives string quote" do expect(quote).to be_a(String) end it "gives quote with 10 < length < 1000" do expect(quote.length).to be_between(11, 999) end it "gives different quotes" do messages = Set.new maximum = 10 minimum = maximum / 2 maximum.times { messages << quote } begin expect(messages.size).to be_between(minimum, maximum) rescue puts messages fail "we expected at least #{minimum} different messages for #{maximum}" \ " calls. But we just got #{messages.size}: #{messages}" end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
vamp-0.2.0 | spec/vamp_spec.rb |
vamp-0.1.8 | spec/vamp_spec.rb |
vamp-0.1.7 | spec/vamp_spec.rb |
vamp-0.1.6 | spec/vamp_spec.rb |
vamp-0.1.5 | spec/vamp_spec.rb |
vamp-0.1.4 | spec/vamp_spec.rb |