very terse syntax for testing/specing ala Test::More
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/spec
spec
.document
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION

README.rdoc

spec-more

Spec::More gives very terse aliases for spec'ing inspired by Perl's Test::More. Less is More as they say.

Synopsis

.is        .should.equal
.isnt      .should.not.equal
.isa       .class.should.equal

.enums     (all elements equal [using #each])
.matches   .should.match

ok x == y  assert x == y

xdescribe  skip it
xit        skip it

Usage

require 'spec/more'  # depends on bacon

# currently only works within a bacon context
describe 'a big dog' do
  it 'barks loudly' do
    dog.bark.is 'loud'
    dog.bark.matches /oud/

    [1,2,3].enums [1,2,3]
    'dog'.matches /og/
    ok dog.bark == 'loud'
  end
end

xdescribe 'a spec to be skipped' do
  xit 'skip this spec' do 
  end
end

Installation

gem install spec-more

Has bacon as a dependency so it should install that too.

Limitations

For Bacon only right now. (pull requests appreciated).