Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

have_db_column.().with_options() should raise error on misspelled argument #1281

Closed
recurator opened this issue Mar 11, 2020 · 1 comment
Closed
Labels

Comments

@recurator
Copy link

ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
Rails 6.0.0
RSpec 3.8

  • rspec-core 3.8.2
  • rspec-expectations 3.8.4
  • rspec-mocks 3.8.1
  • rspec-rails 3.8.2
  • rspec-support 3.8.2
    shoulda-matchers (4.1.2)

spec/models/comment_spec.rb:

require 'rails_helper'
RSpec.describe Comment, type: :model do
  it { is_expected.to have_db_column(:created_at).of_type(:datetime).with_options(preccision: 6, null: false)
end

*** Note spelling error: preccision

It is expected to raise error but no error is raised.

@mcmire
Copy link
Collaborator

mcmire commented Mar 23, 2021

Closing this since #1358 was merged.

@mcmire mcmire closed this as completed Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants