Project

spec-more

0.0
No commit activity in last 3 years
No release in over 3 years
very terse syntax for testing/specing ala Test::More
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

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).