test/test_readme.rb in rubyqc-0.0.2 vs test/test_readme.rb in rubyqc-0.0.3
- old
+ new
@@ -1,21 +1,21 @@
require 'rubyqc/test'
describe Array do
describe 'sort' do
- should 'Any front elements should be <= any rear elements' do
+ would 'Any front elements should be <= any rear elements' do
check([Fixnum]*100).times(10) do |array|
array.sort.each_cons(2).each{ |x, y| x.should <= y }
end
end
end
end
describe Hash do
describe 'compare_by_identity' do
- should 'Treat diff arr with the same contents diff when set' do
+ would 'Treat diff arr with the same contents diff when set' do
arr = [0]
forall(booleans, [arr, [0]], [arr, [1]]) do |flag, a, b|
h = {}
h.compare_by_identity if flag
h[a] = h[b] = true
@@ -35,13 +35,13 @@
new(Fixnum.rubyqc, String.rubyqc)
end
end
describe 'User.rubyqc' do
- should 'Generate random users' do
+ would 'Generate random users' do
check(User) do |user|
- user .should.kind_of User
- user.id .should.kind_of Fixnum
- user.name.should.kind_of String
+ user .should.kind_of? User
+ user.id .should.kind_of? Fixnum
+ user.name.should.kind_of? String
end
end
end