1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
#should shortcut for #it('should')
- should be called
- should save some characters by typing should
- should save characters even on failure
- should work nested
- should add new specifications
- should have been called
A non-true value
- should pass negated tests inside specs
- should pass negated tests outside specs
Bacon
- should have should.satisfy
- should have should.==
- should have should.equal
- should have should.raise
- should have should.change
- should have should.raise with a block
- should have a should.raise should return the exception
- should have should.be.an.instance_of
- should have should.be.nil
- should have should.include
- should have should.be.a.kind_of
- should have should.match
- should have should.not.raise
- should have should.throw
- should have should.not.satisfy
- should have should.not.equal
- should have should.not.match
- should have should.be.identical_to/same_as
- should have should.respond_to
- should have should.be.close
- should support multiple negation
- should have should.<predicate>
- should have should <operator> (>, >=, <, <=, ===)
- should allow for custom shoulds
- should have should.flunk
before/after
- should run in the right order
when nested
- should run from higher level
- should run at the nested level
- should run in the right order
- should not run from lower level
when nested at a sibling level
- should not run from sibling level
shared/behaves_like
- gets called where it is included
- raises NameError when the context is not found
- gets called where it is included
- can access data
Methods
- should be accessible in a test
when in a sibling context
- should be accessible in a test
describe arguments
- should work with string string
- should work with symbols behaviour
- should work with modules Bacon
- should work with namespaced modules Bacon::Context
- should work with multiple arguments Bacon::Context empty
50 specifications (408 requirements), 0 failures, 0 errors
|