Skip to content

Commit

Permalink
Revert stubba_example_test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabigeek committed Aug 24, 2022
1 parent 2b1067b commit c1d3b2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/acceptance/stubba_example_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ def should_stub_two_different_class_methods
found_widgets = [Widget.new]
created_widget = Widget.new
Widget.expects(:find).with(:all).returns(found_widgets)
Widget.expects(:create).with({ :model => 'wombat' }).returns(created_widget)
Widget.expects(:create).with(:model => 'wombat').returns(created_widget)
assert_equal found_widgets, Widget.find(:all)
assert_equal created_widget, Widget.create({ :model => 'wombat' })
assert_equal created_widget, Widget.create(:model => 'wombat')
end

def should_stub_instance_method_on_any_instance_of_a_class
Expand Down

0 comments on commit c1d3b2c

Please sign in to comment.