rspec-given 3.1.1 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +15 -12
- data/README.md +18 -9
- data/examples/failing/natural_failing_spec.rb +3 -3
- data/examples/integration/and_spec.rb +1 -1
- data/spec/lib/given/binary_operation_spec.rb +9 -9
- data/spec/lib/given/evaluator_spec.rb +10 -10
- data/spec/lib/given/extensions_spec.rb +49 -49
- data/spec/lib/given/failure_spec.rb +5 -5
- data/spec/lib/given/file_cache_spec.rb +5 -5
- data/spec/lib/given/have_failed_spec.rb +47 -47
- data/spec/lib/given/line_extractor_spec.rb +7 -7
- data/spec/lib/given/module_methods_spec.rb +2 -2
- data/spec/lib/given/natural_assertion_spec.rb +50 -50
- data/spec/lib/given/options_spec.rb +23 -23
- data/spec/spec_helper.rb +5 -5
- data/spec/support/be_booleany.rb +15 -0
- metadata +6 -8
- data/README.old +0 -902
- data/test/before_test.rb +0 -22
- data/test/meme_test.rb +0 -36
data/test/before_test.rb
DELETED
@@ -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
|
data/test/meme_test.rb
DELETED
@@ -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
|