You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/rspec/mocks/filter/bugs/any_instance.rb
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
rspec_filterfilter'#any_instance'do
2
2
filter'#any_instance when used after the test has finished restores the original behaviour, even if the expectation fails'
3
3
filter'#any_instance when used after the test has finished restores the original behavior of a stubbed method'
4
-
filter'#any_instance when directed at a method defined on a superclass mocks the method correctly'
4
+
filter('#any_instance when directed at a method defined on a superclass mocks the method correctly').unless{at_least_opal_0_9?}
5
5
filter'#any_instance when resetting post-verification existing method with stubbing private methods restores a stubbed private method after the spec is run'
6
6
filter'#any_instance when resetting post-verification existing method with expectations private methods restores a stubbed private method after the spec is run'
7
7
filter'#any_instance passing the receiver to the implementation block when configured to pass the instance an any instance stub does not pass the instance to and_call_original'
8
-
filter'#any_instance setting a message expectation with an expectation is set on a method that exists after any one instance has received a message fails if the method is invoked on a second instance'
9
-
filter"#any_instance setting a message expectation with an expectation is set on a method which does not exist behaves as 'exactly one instance' fails if the method is invoked on a second instance"
8
+
filter('#any_instance setting a message expectation with an expectation is set on a method that exists after any one instance has received a message fails if the method is invoked on a second instance').unless{at_least_opal_0_9?}
9
+
filter("#any_instance setting a message expectation with an expectation is set on a method which does not exist behaves as 'exactly one instance' fails if the method is invoked on a second instance").unless{at_least_opal_0_9?}
10
10
filter('#any_instance setting a message expectation works with a SimpleDelegator subclass').unless{at_least_opal_0_9?}
11
11
filter"#any_instance when stubbing behaves as 'every instance' handles freeze and duplication correctly"
12
12
filter"#any_instance when stubbing behaves as 'every instance' handles method restoration on subclasses"
0 commit comments