Skip to content

Commit cb08764

Browse files
wyattisimodblock
authored andcommitted
Fix: missing argument to block.
1 parent cbd7633 commit cb08764

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/grape_entity/entity_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ class BogusEntity < Grape::Entity
6262
end
6363
end
6464

65-
subject.expose(:bogus, using: EntitySpec::BogusEntity) do
66-
object.prop1 = "MODIFIED 2"
67-
object
65+
subject.expose(:bogus, using: EntitySpec::BogusEntity) do |entity|
66+
entity.prop1 = "MODIFIED 2"
67+
entity
6868
end
6969

7070
object = EntitySpec::SomeObject1.new

0 commit comments

Comments
 (0)