Skip to content

Commit

Permalink
Add/update fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
reese authored Dec 20, 2023
1 parent 129e312 commit 419aa67
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 16 deletions.
4 changes: 3 additions & 1 deletion fixtures/large/rspec_core_notifications_expected.rb
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ def totals_line
Formatters::Helpers.pluralize(failure_count, "failure")
summary += ", #{pending_count} pending" if pending_count > 0
if errors_outside_of_examples_count > 0
summary += (", " + Formatters::Helpers.pluralize(errors_outside_of_examples_count, "error") + " occurred outside of examples")
summary += (", " +
Formatters::Helpers.pluralize(errors_outside_of_examples_count, "error") +
" occurred outside of examples")
end

summary
Expand Down
8 changes: 4 additions & 4 deletions fixtures/large/rspec_mocks_proxy_expected.rb
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,8 @@ def initialize(source_space, *args)
# That's what this method (together with `original_unbound_method_handle_from_ancestor_for`)
# does.
def original_method_handle_for(message)
unbound_method = superclass_proxy && superclass_proxy.original_unbound_method_handle_from_ancestor_for(
message.to_sym
)
unbound_method = superclass_proxy &&
superclass_proxy.original_unbound_method_handle_from_ancestor_for(message.to_sym)

return super unless unbound_method
unbound_method.bind(object)
Expand Down Expand Up @@ -427,7 +426,8 @@ def method_double_from_ancestor_for(message)
# The fact that there is no method double for this message indicates
# that it has not been redefined by rspec-mocks. We need to continue
# looking up the ancestor chain.
return superclass_proxy && superclass_proxy.method_double_from_ancestor_for(message)
return superclass_proxy &&
superclass_proxy.method_double_from_ancestor_for(message)
end
end

Expand Down
7 changes: 5 additions & 2 deletions fixtures/small/binary_operators_expected.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
foo || bar

foo || bar
foo ||
bar

if foo || bar
end
Expand All @@ -27,7 +28,9 @@
b &&
c

a || (b && c)
a ||
(b &&
c)

a ||
b &&
Expand Down
3 changes: 3 additions & 0 deletions fixtures/small/breakable_binary_op_actual.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
some_value_goes_here = if some_really_long_name_so_that_this_example_breaks_the_way_that_i_want_it_to && foo.some_other_condition? && other_thing
""
end
5 changes: 5 additions & 0 deletions fixtures/small/breakable_binary_op_expected.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
some_value_goes_here = if some_really_long_name_so_that_this_example_breaks_the_way_that_i_want_it_to &&
foo.some_other_condition? &&
other_thing
""
end
9 changes: 5 additions & 4 deletions fixtures/small/comments_at_indentation_changes_expected.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
created: now + 5
)

# We've got all these sorts of reasons
# we need to filter these out, but
# someone will probably document that elsewhere, not here
RELATIVE_EXCLUDES.any? { |str| things.include?(str) } || !relative.end_with?(".rb")
RELATIVE_EXCLUDES.any? { |str| things.include?(str) } ||
# We've got all these sorts of reasons
# we need to filter these out, but
# someone will probably document that elsewhere, not here
!relative.end_with?(".rb")
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ def stub_server(path:, body: {})

{
"original_fields" => foo,
"alternative_fields" => (thing_one(id, api) + thing_two(
id,
api
))
"alternative_fields" => (thing_one(id, api) +
thing_two(
id,
api
))
.sort
}
3 changes: 2 additions & 1 deletion fixtures/small/return_expected.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
return a, b
return [a, b]
return a && b
return a && b
return a &&
b

0 comments on commit 419aa67

Please sign in to comment.