spec/lib/rapid_rack/engine_spec.rb in rapid-rack-0.0.1 vs spec/lib/rapid_rack/engine_spec.rb in rapid-rack-0.1.0
- old
+ new
@@ -27,18 +27,18 @@
let(:receiver_class) do
build_class do
include DefaultReceiver
include RedisRegistry
- def map_attributes(attrs)
+ def map_attributes(_env, attrs)
{
targeted_id: attrs['edupersontargetedid'],
email: attrs['mail'],
name: attrs['displayname']
}
end
- def subject(attrs)
+ def subject(_env, attrs)
identifier = attrs.slice(:targeted_id)
TestSubject.find_or_initialize_by(identifier).tap do |subject|
subject.update_attributes!(attrs)
end
end