brutal
shoulda-matchers
brutal | shoulda-matchers | |
---|---|---|
1 | 5 | |
53 | 3,468 | |
- | 0.1% | |
0.0 | 8.2 | |
2 months ago | 20 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
brutal
-
What Ruby code to expect from a testing DSL?
Unless you don't write tests, the advantage of using such DSL interface is to limit the introduction of additional logic into the specification document with potential errors, to encourage the use of good Ruby patterns with low algorithmic complexity, and to make Ruby code shorter and more (machine) readable.
shoulda-matchers
-
How to Use Shoulda Matchers with RSpec for Ruby on Rails
According to the shoulda-matchers documentation:
-
Rspec - should relations between model be tested?
The value of shoulda-matchers is right there in the first line of the README: "test common Rails functionality that, if written by hand, would be much longer, more complex, and error-prone."
-
Get help from thoughtbot for free (mentoring / office hours)
I work at thoughtbot, you might know us for our open source work like administrate, factory_bot or shoulda-matchers.
- Como configurar ambiente de testes em Ruby on Rails com RSpec
-
Top 5 Best Testing Ruby Gems For Building Ruby on Rails Web Application
4. Shoulda-matchers
What are some alternatives?
DuckRails - Development tool to mock API endpoints quickly and easily (docker image available)
Capybara - Acceptance test framework for web applications
capybara-webkit
RSpec - RSpec meta-gem that depends on the other components
timecop - A gem providing "time travel", "time freezing", and "time acceleration" capabilities, making it simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.
minitest - minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking.
mutant - Automated code reviews via mutation testing - semantic code coverage.
Pundit Matchers - A set of RSpec matchers for testing Pundit authorisation policies.
Ruby-JMeter - A Ruby based DSL for building JMeter test plans
Cutest - Isolated tests in Ruby.
Cucumber - A home for issues that are common to multiple cucumber repositories