-
`have_and_belong_to_many(:association_name)` has naming conflict with should amatchers. All other matchers have aliases - which is great! I can use both shoulda matchers and `mongoid-rspec` matchers.
…
-
@DPI-WE/technical-associates
-
https://github.com/rspec/rspec-expectations/blob/master/lib/rspec/matchers.rb#L320-L322
https://github.com/rspec/rspec-expectations/blob/master/lib/rspec/matchers/built_in/be.rb#L104-L106
I think tha…
-
I just added this gem, and I am now unable to run any tests or start my spork server.
**Gemfile:**
```
group :development, :test do
gem 'rspec-rails'
gem 'factory_girl_rails'
gem 'dotenv-rails…
-
### Subject of the issue
I've created a custom matcher which allows to chain other matchers against a computed value :
```ruby
matcher :have_html_body do
chain :to, :other_matcher
mat…
-
There's already [a 2-year old open issue](https://github.com/trailblazer/reform/issues/156) about this, but it seems to have been abandoned, so I thought I'd get the discussion going again here. Apolo…
-
RSpec Expectations allow syntax like:
``` ruby
expect { ... some code ... }.to raise_error(MyErrorClass, my_error_message)
```
However if the code under test is not trivially short, it will need to …
-
The matchers need to be used with RSpec. This will somehow involve getting RSpec to be able to call the matchers and report the results.
There is also the question about how the matchers will read wi…
-
### Why ?
We need a test framework right away. This way, rails will generate the different files correctly. I'd rather like Rspec as its syntax is more readable and the tests look good.
### Must…
-
You add 'rspec-collection_matchers' gem to `group :development, :test` but it should be okay even if adding to test group only, correct?