0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Sharable test suite components for apps based on the Krikri engine.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.2
>= 0

Runtime

>= 0
 Project Readme

Krikri::Spec

Build Status

RSpec extensions and shared examples for Krikri.

Shared Examples

Shared examples are included as linters for Krikri contracts. Use the shared examples within individual spec files by invoking them in place:

require 'krikri/spec/harvester'

describe MyHarvester do
  it_behaves_like 'a harvester'
end

Matchers

Matchers for some common patterns within specs for Krikri apps are provided. You can include them in your RSpec enviornment with:

require 'krikri/spec

RSpec.configure do |conf|
  conf.include(Krikri::Spec::Matchers)
end

Development

When working on the Krikri gem, it is often useful to work directly against a local copy of the Krikri::Spec examples. To do this, you can add a local path to your Krikri Gemfile:

# Gemfile

gem 'krikri-spec', path: '../krikri-spec'

Or run against the develop branch on GitHub:

# Gemfile

gem 'krikri-spec', github: 'dpla/krikri-spec', branch: 'develop'

Contribution Guidelines

Please observe the following guidelines:

  • Write tests for your contributions.
  • Document methods you add using YARD annotations.
  • Follow the included style guidelines (i.e. run rubocop before committing).
  • Use well formed commit messages.

Copyright & License

  • Copyright Digital Public Library of America, 2016
  • License: MIT