rspec-given 3.1.1 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +0,0 @@
1
- require "minitest/autorun"
2
- require "minitest/given"
3
-
4
- Given.use_natural_assertions
5
-
6
- describe "Before" do
7
- _Gvn_before { puts "Before 1" }
8
- def setup
9
- puts "Setup 1"
10
- super
11
- end
12
-
13
- describe "not nil" do
14
- _Gvn_before { puts "Before 2a" }
15
- _Gvn_before { puts "Before 2b" }
16
- def setup
17
- super
18
- puts "Setup 2"
19
- end
20
- Then { 1 != nil }
21
- end
22
- end
@@ -1,36 +0,0 @@
1
- require "minitest/autorun"
2
- require "minitest/given"
3
-
4
- class Meme
5
- def will_it_blend?
6
- end
7
-
8
- def i_can_has_cheezburger?
9
- "OHAI!"
10
- end
11
- end
12
-
13
-
14
- Given.use_natural_assertions
15
-
16
- describe Meme do
17
- def setup
18
- super
19
- puts "SETUP"
20
- end
21
-
22
- Given(:meme) { Meme.new }
23
-
24
- describe "not nil" do
25
- def setup
26
- super
27
- puts "Setup 2"
28
- end
29
- _Gvn_before { puts "BEFORE" }
30
- Then { meme != nil }
31
- end
32
-
33
- Then { meme.i_can_has_cheezburger? == "OHAI!" }
34
- Then { meme.will_it_blend? !~ /^no/i }
35
- Then { skip "test this later" }
36
- end