-
So, let's say we have:
```
# app/models/product.rb
class Product < ApplicationRecord
has_many :prices
validates :code, presence: true, uniqueness: true
validate :custom_validat…
-
the Songs Controller tests raise this error. Notice it is raised from a line the Spec tests, not with the files to be edited.
1) SongsController GET show with artist redirects to artists songs whe…
-
Hi,
Awesome, gem, thanks so much for this.
There are a couple of issues with your instructions in the repo's readme.
```
shell> gem install jeweler
... succeeds ...
shell> jeweler hello-gem
cr…
-
https://help.github.com/articles/setting-guidelines-for-repository-contributors/
-
Reference: https://rspec.rubystyle.guide/#model-validations
## Describe the solution you'd like
```ruby
RSpec.describe '#title' do
# bad
it 'is required' do
article.title = nil
…
-
in a rails3.1.3 app the installation rails g dresscode:install finishes fine. but if i do a bundle in $dresscode/bundle it will cancel with >>
Bundler could not find compatible versions for gem "rai…
polka updated
12 years ago
-
My env:
- Rails 3.1
- Ruby 1.8.7
I've got the next model:
```
class Submodel < ActiveRecord::Base
acts_as_enumerated :name_column => :code
validates :code, :presence => true, :uniqueness => tru…
-
it { is_expected.to have_and_belong_to_many(:category_groups) }
vs
it { should have_and_belong_to_many(:category_groups) }
rubocop-rspecs default er
> RSpec/ImplicitExpect: Prefer …
-
Lot of gems in Gemfile are obsolete and abandoned, so this is the place to keep track and discuss what to replace them with.
- [ ] **#58** [tmail](http://tmail.rubyforge.org/) → [mail](https://github.…
-
Hi,
Recently I make a proposal to create a test helper on the [AMS](https://github.com/rails-api/active_model_serializers/pull/1270), that follows the same idea, use a schema file to validate a API r…