module FriendlyAttributes::Test::Matchers
Public Instance Methods
have_friendly_attributes(*args)
click to toggle source
RSpec matcher for checking Friendly attributes. Passes if the model has the specified FriendlyAttributes
associated with it.
@example Using the matcher
it { should have_friendly_attributes(String, :ssn, :work_email, :through => UserDetails) } it { should have_friendly_attributes(Friendly::Boolean, :is_active, :through => CompanyDetails) }
@return [HaveFriendlyAttribute] matcher
# File lib/friendly_attributes/test/matchers.rb, line 42 def have_friendly_attributes(*args) HaveFriendlyAttribute.new(self, *args) end
Also aliased as: have_friendly_attribute