Sha256: ba41b2d89c06f9dc03c4135d5efa39b35287091ad0cc2c4aee7dc08741f8ac6c

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

RSpec::Matchers.define :be_invalid_without do |attribute|
  match do |record|
    record.valid?
    record.errors.include?(attribute.to_sym)
  end
end

RSpec::Matchers.define :have_user_accessors do
  match do |record|
    [record.respond_to?(:first_name),
    record.respond_to?(:last_name),
    record.respond_to?(:email),
    record.respond_to?(:password),
    record.respond_to?(:password_confirmation)].all?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bento-0.0.3 spec/support/bento_spec_helper.rb