Implement procedure cloning
This commit is contained in:
parent
7fd2aa40ca
commit
7af7859334
10 changed files with 113 additions and 1 deletions
|
@ -113,4 +113,11 @@ RSpec.configure do |config|
|
|||
end
|
||||
end
|
||||
}
|
||||
|
||||
RSpec::Matchers.define :have_same_attributes_as do |expected|
|
||||
match do |actual|
|
||||
ignored = [:id, :procedure_id, :updated_at, :created_at]
|
||||
actual.attributes.with_indifferent_access.except(*ignored) == expected.attributes.with_indifferent_access.except(*ignored)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue