We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99f5fb7 commit dbbb163Copy full SHA for dbbb163
opal/opal/rspec/fixes.rb
@@ -96,3 +96,13 @@ def save_original_method!
96
@original_method ||= @method_stasher.original_method
97
end
98
99
+
100
+module RSpec
101
+ module Core
102
+ module MemoizedHelpers
103
+ def is_expected
104
+ expect(subject)
105
+ end
106
107
108
+end
spec/should_syntax_spec.rb
@@ -0,0 +1,13 @@
1
+describe "One-liner should syntax" do
2
+ subject { 42 }
3
4
+ describe "should" do
5
+ it { should == 42 }
6
+ it { should_not == 43 }
7
8
9
+ describe "is_expected" do
10
+ it { is_expected.to eq(42) }
11
+ it { is_expected.to_not eq(43) }
12
13
0 commit comments