Both avoiding 'should' and repiting 'it' on the tests description improves reading them and also makes all descriptions consistent. Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExampleWording
10 lines
166 B
Ruby
10 lines
166 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe Identity, type: :model do
|
|
let(:identity) { build(:identity) }
|
|
|
|
it "is valid" do
|
|
expect(identity).to be_valid
|
|
end
|
|
end
|