No commit activity in last 3 years
No release in over 3 years
An RSpec matcher that ensures expected is an array and each element is of specified type.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Project Readme

RSpec Matcher be_an_array_of

Gem Version Code Climate GPA Test Coverage Gemnasium Status Travis CI Status

Table of Contents

  • Features
  • Requirements
  • Setup
  • Usage
  • Tests
  • Versioning
  • Code of Conduct
  • Contributions
  • License
  • History
  • Credits

Features

Matches agains an array of specified type. Type is either class name or one of class's ancestors.

Requirements

  1. MRI 2.x
  2. RSpec 3.x

Setup

To install, type the following:

gem install rspec-matchers-be_an_array_of

Add the following to your Gemfile:

gem "rspec-matchers-be_an_array_of"

Usage

RSpec.describe ["an", "array", "of", "strings"] do
  it { is_expected.to be_an_array_of String}
end

Tests

rake spec

Versioning

Read Semantic Versioning for details. Briefly, it means:

  • Patch (x.y.Z) - Incremented for small, backwards compatible bug fixes.
  • Minor (x.Y.z) - Incremented for new, backwards compatible public API enhancements and/or bug fixes.
  • Major (X.y.z) - Incremented for any backwards incompatible public API changes.

Code of Conduct

Please note that this project is released with a CODE OF CONDUCT. By participating in this project you agree to abide by its terms.

Contributions

Read CONTRIBUTING for details.

License

Copyright (c) 2016 Pooyan Khosravi. Read the LICENSE for details.

History

Read the CHANGELOG for details. Built with Gemsmith.

Credits

Developed by Pooyan Khosravi.