Parent

Files

Class/Module Index [+]

Quicksearch

Object

Public Instance Methods

attributes() click to toggle source
# File lib/rspec/rails/matchers/be_a_new.rb, line 25
def attributes
  @attributes ||= {}
end
attributes_match?(actual) click to toggle source
# File lib/rspec/rails/matchers/be_a_new.rb, line 29
def attributes_match?(actual)
  attributes.stringify_keys.all? do |key, value|
    actual.attributes[key].eql?(value)
  end
end
unmatched_attributes() click to toggle source
# File lib/rspec/rails/matchers/be_a_new.rb, line 35
def unmatched_attributes
  attributes.stringify_keys.reject do |key, value|
    actual.attributes[key].eql?(value)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.