Skip to content

Commit 940e0d2

Browse files
committed
Updates example for be_new_record.
1 parent 1dee0e1 commit 940e0d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/rails/matchers/be_new_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def failure_message_for_should_not
2020
# @example
2121
#
2222
# get :new
23-
# expect(assigns).to(:thing) be_new_record
23+
# expect(assigns(:thing)).to be_new_record
2424
def be_new_record
2525
BeANewRecord.new
2626
end

0 commit comments

Comments
 (0)