minitest-given 0.1.pre → 3.0.0.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +27 -0
- data/{README.rdoc → MIT-LICENSE} +1 -29
- data/README.md +763 -0
- data/Rakefile +225 -15
- data/TODO +13 -0
- data/doc/main.rdoc +7 -0
- data/examples/example_helper.rb +10 -0
- data/examples/failing/natural_failing_spec.rb +48 -0
- data/examples/failing/sample_spec.rb +7 -0
- data/examples/integration/and_spec.rb +44 -0
- data/examples/integration/failing/eval_subexpression_spec.rb +9 -0
- data/examples/integration/failing/module_nesting_spec.rb +13 -0
- data/examples/integration/failing/undefined_method_spec.rb +9 -0
- data/examples/integration/failing_messages_spec.rb +38 -0
- data/examples/integration/focused_line_spec.rb +9 -0
- data/examples/integration/given_spec.rb +73 -0
- data/examples/integration/invariant_spec.rb +31 -0
- data/examples/integration/then_spec.rb +8 -0
- data/examples/loader.rb +4 -0
- data/examples/minitest_helper.rb +38 -0
- data/examples/other/line_example.rb +9 -0
- data/examples/stack/stack.rb +29 -0
- data/examples/stack/stack_spec.rb +60 -0
- data/examples/stack/stack_spec1.rb +3 -0
- data/lib/given.rb +2 -0
- data/lib/minitest/given.rb +1 -32
- data/lib/minitest-given.rb +9 -1
- data/rakelib/bundler_fix.rb +17 -0
- data/rakelib/gemspec.rake +161 -0
- data/rakelib/metrics.rake +30 -0
- data/rakelib/preview.rake +14 -0
- data/test/before_test.rb +22 -0
- data/test/meme_test.rb +36 -0
- metadata +69 -85
- data/.autotest +0 -23
- data/.gemtest +0 -0
- data/CHANGELOG.rdoc +0 -3
- data/Manifest.txt +0 -11
- data/minitest-given.gemspec +0 -42
- data/test/test_assertions.rb +0 -30
- data/test/test_comparison.rb +0 -25
- data/test/test_version.rb +0 -10
@@ -0,0 +1,60 @@
|
|
1
|
+
require 'example_helper'
|
2
|
+
require 'stack'
|
3
|
+
|
4
|
+
Given.use_natural_assertions
|
5
|
+
|
6
|
+
describe Stack do
|
7
|
+
Given(:stack) { Stack.new }
|
8
|
+
Given(:initial_contents) { [] }
|
9
|
+
Given { initial_contents.each do |item| stack.push(item) end }
|
10
|
+
|
11
|
+
Invariant { stack.empty? == (stack.depth == 0) }
|
12
|
+
|
13
|
+
context "with an empty stack" do
|
14
|
+
Given(:initial_contents) { [] }
|
15
|
+
Then { stack.depth == 0 }
|
16
|
+
|
17
|
+
context "when pushing" do
|
18
|
+
When { stack.push(:an_item) }
|
19
|
+
|
20
|
+
Then { stack.depth == 1 }
|
21
|
+
Then { stack.top == :an_item }
|
22
|
+
end
|
23
|
+
|
24
|
+
context "when popping" do
|
25
|
+
When(:result) { stack.pop }
|
26
|
+
Then { result == Failure(Stack::UnderflowError, /empty/) }
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
context "with one item" do
|
31
|
+
Given(:initial_contents) { [:an_item] }
|
32
|
+
|
33
|
+
context "when popping" do
|
34
|
+
When(:pop_result) { stack.pop }
|
35
|
+
|
36
|
+
Then { pop_result == :an_item }
|
37
|
+
Then { stack.depth == 0 }
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
context "with several items" do
|
42
|
+
Given(:initial_contents) { [:second_item, :top_item] }
|
43
|
+
Given!(:original_depth) { stack.depth }
|
44
|
+
|
45
|
+
context "when pushing" do
|
46
|
+
When { stack.push(:new_item) }
|
47
|
+
|
48
|
+
Then { stack.top == :new_item }
|
49
|
+
Then { stack.depth == original_depth + 1 }
|
50
|
+
end
|
51
|
+
|
52
|
+
context "when popping" do
|
53
|
+
When(:pop_result) { stack.pop }
|
54
|
+
|
55
|
+
Then { pop_result == :top_item }
|
56
|
+
Then { stack.top == :second_item }
|
57
|
+
Then { stack.depth == original_depth - 1 }
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
data/lib/given.rb
ADDED
data/lib/minitest/given.rb
CHANGED
@@ -1,32 +1 @@
|
|
1
|
-
require
|
2
|
-
require "minitest/spec"
|
3
|
-
# require "wrong/adapters/minitest"
|
4
|
-
|
5
|
-
module MiniTest
|
6
|
-
module Given
|
7
|
-
VERSION = "0.1.pre"
|
8
|
-
end
|
9
|
-
|
10
|
-
class Spec
|
11
|
-
def self.Given *args, &block
|
12
|
-
if args.first.is_a? Symbol
|
13
|
-
self.let args.first, &block
|
14
|
-
else
|
15
|
-
self.before(&block)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
def self.Then &block
|
20
|
-
# I want to call wrong's assert passing the block!
|
21
|
-
# I don't want to call the standard assert here.
|
22
|
-
it { assert instance_eval(&block) }
|
23
|
-
end
|
24
|
-
|
25
|
-
class << self
|
26
|
-
alias :context :describe
|
27
|
-
alias :Context :describe
|
28
|
-
alias :When :Given
|
29
|
-
alias :And :Then
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
1
|
+
require 'given/minitest/all'
|
data/lib/minitest-given.rb
CHANGED
@@ -1 +1,9 @@
|
|
1
|
-
|
1
|
+
# This file file is to make bundler happy when auto-requiring files
|
2
|
+
# based on gem name. If you are manually requiring rspec/given,
|
3
|
+
# please use the canonical require file, ie.
|
4
|
+
#
|
5
|
+
# require 'minitest/given'
|
6
|
+
#
|
7
|
+
# Thanks.
|
8
|
+
|
9
|
+
require 'given/minitest/all'
|
@@ -0,0 +1,161 @@
|
|
1
|
+
require 'rubygems/package_task'
|
2
|
+
require './lib/given/version'
|
3
|
+
|
4
|
+
if ! defined?(Gem)
|
5
|
+
puts "Package Target requires RubyGEMs"
|
6
|
+
else
|
7
|
+
PKG_FILES = FileList[
|
8
|
+
'[A-Z]*',
|
9
|
+
'lib/*.rb',
|
10
|
+
'lib/**/*.rb',
|
11
|
+
'rakelib/**/*',
|
12
|
+
'test/**/*.rb',
|
13
|
+
'spec/**/*.rb',
|
14
|
+
'examples/**/*',
|
15
|
+
'doc/**/*',
|
16
|
+
]
|
17
|
+
PKG_FILES.exclude('TAGS')
|
18
|
+
GIVEN_CORE_FILES = FileList[*PKG_FILES].
|
19
|
+
exclude("lib/*-given.rb").
|
20
|
+
exclude("lib/rspec/**/*").
|
21
|
+
exclude("lib/minitest/**/*").
|
22
|
+
exclude("spec/**/*").
|
23
|
+
exclude("examples/**/*")
|
24
|
+
RSPEC_GIVEN_FILES = FileList[*PKG_FILES].
|
25
|
+
exclude("lib/mini*/**/*").
|
26
|
+
exclude("lib/minitest-given.rb").
|
27
|
+
exclude("lib/given/**/*")
|
28
|
+
MINITEST_GIVEN_FILES = FileList[*PKG_FILES].
|
29
|
+
exclude("spec/**/*").
|
30
|
+
exclude("lib/rspec-given.rb").
|
31
|
+
exclude("lib/rspec*/**/*").
|
32
|
+
exclude("lib/given/**/*")
|
33
|
+
|
34
|
+
RSPEC_GIVEN_SPEC = Gem::Specification.new do |s|
|
35
|
+
s.name = 'rspec-given'
|
36
|
+
s.version = Given::VERSION
|
37
|
+
s.summary = "Given/When/Then Specification Extensions for RSpec."
|
38
|
+
s.description = <<EOF
|
39
|
+
Given is an RSpec extension that allows the use of Given/When/Then
|
40
|
+
terminology when defining specifications.
|
41
|
+
EOF
|
42
|
+
s.files = RSPEC_GIVEN_FILES.to_a
|
43
|
+
s.require_path = 'lib' # Use these for libraries.
|
44
|
+
s.rdoc_options = [
|
45
|
+
'--line-numbers', '--inline-source',
|
46
|
+
'--main' , 'doc/main.rdoc',
|
47
|
+
'--title', 'RSpec Given Extensions'
|
48
|
+
]
|
49
|
+
|
50
|
+
s.add_dependency("given_core", "= #{Given::VERSION}")
|
51
|
+
s.add_dependency("rspec", ">= 2.12")
|
52
|
+
|
53
|
+
s.required_ruby_version = '>= 1.9.2'
|
54
|
+
s.license = "MIT"
|
55
|
+
|
56
|
+
s.author = "Jim Weirich"
|
57
|
+
s.email = "jim.weirich@gmail.com"
|
58
|
+
s.homepage = "http://github.com/jimweirich/rspec-given"
|
59
|
+
s.rubyforge_project = "given"
|
60
|
+
end
|
61
|
+
|
62
|
+
MINITEST_GIVEN_SPEC = Gem::Specification.new do |s|
|
63
|
+
s.name = 'minitest-given'
|
64
|
+
s.version = Given::VERSION
|
65
|
+
s.summary = "Given/When/Then Specification Extensions for Minitest::Spec."
|
66
|
+
s.description = <<EOF
|
67
|
+
Given is a Minitest::Spec extension that allows the use of Given/When/Then
|
68
|
+
terminology when defining specifications.
|
69
|
+
EOF
|
70
|
+
s.files = MINITEST_GIVEN_FILES.to_a
|
71
|
+
s.require_path = 'lib' # Use these for libraries.
|
72
|
+
s.rdoc_options = [
|
73
|
+
'--line-numbers', '--inline-source',
|
74
|
+
'--main' , 'doc/main.rdoc',
|
75
|
+
'--title', 'Minitest::Spec Given Extensions'
|
76
|
+
]
|
77
|
+
|
78
|
+
s.add_dependency("given_core", "= #{Given::VERSION}")
|
79
|
+
s.add_dependency("minitest", "> 4.3")
|
80
|
+
|
81
|
+
s.required_ruby_version = '>= 1.9.2'
|
82
|
+
s.license = "MIT"
|
83
|
+
|
84
|
+
s.author = "Jim Weirich"
|
85
|
+
s.email = "jim.weirich@gmail.com"
|
86
|
+
s.homepage = "http://github.com/jimweirich/rspec-given"
|
87
|
+
s.rubyforge_project = "given"
|
88
|
+
end
|
89
|
+
|
90
|
+
GIVEN_CORE_SPEC = Gem::Specification.new do |s|
|
91
|
+
s.name = 'given_core'
|
92
|
+
s.version = Given::VERSION
|
93
|
+
s.summary = "Core engine for RSpec::Given and Minitest::Given."
|
94
|
+
s.description = <<EOF
|
95
|
+
Given_core is the basic functionality behind rspec-given and minitest-given,
|
96
|
+
extensions that allow the use of Given/When/Then terminology when defining
|
97
|
+
specifications.
|
98
|
+
EOF
|
99
|
+
s.files = GIVEN_CORE_FILES.to_a
|
100
|
+
s.require_path = 'lib' # Use these for libraries.
|
101
|
+
s.rdoc_options = [
|
102
|
+
'--line-numbers', '--inline-source',
|
103
|
+
'--main' , 'doc/main.rdoc',
|
104
|
+
'--title', 'RSpec Given Extensions'
|
105
|
+
]
|
106
|
+
|
107
|
+
s.add_dependency("sorcerer", ">= 0.3.7")
|
108
|
+
|
109
|
+
s.required_ruby_version = '>= 1.9.2'
|
110
|
+
s.license = "MIT"
|
111
|
+
|
112
|
+
s.author = "Jim Weirich"
|
113
|
+
s.email = "jim.weirich@gmail.com"
|
114
|
+
s.homepage = "http://github.com/jimweirich/rspec-given"
|
115
|
+
s.rubyforge_project = "given"
|
116
|
+
end
|
117
|
+
|
118
|
+
Gem::PackageTask.new(MINITEST_GIVEN_SPEC) do |pkg|
|
119
|
+
pkg.need_zip = false
|
120
|
+
pkg.need_tar = false
|
121
|
+
end
|
122
|
+
|
123
|
+
Gem::PackageTask.new(RSPEC_GIVEN_SPEC) do |pkg|
|
124
|
+
pkg.need_zip = false
|
125
|
+
pkg.need_tar = false
|
126
|
+
end
|
127
|
+
|
128
|
+
Gem::PackageTask.new(GIVEN_CORE_SPEC) do |pkg|
|
129
|
+
pkg.need_zip = false
|
130
|
+
pkg.need_tar = false
|
131
|
+
end
|
132
|
+
|
133
|
+
file "rspec-given.gemspec" => ["rakelib/gemspec.rake"] do |t|
|
134
|
+
require 'yaml'
|
135
|
+
open(t.name, "w") { |f| f.puts RSPEC_GIVEN_SPEC.to_yaml }
|
136
|
+
end
|
137
|
+
|
138
|
+
file "minitest-given.gemspec" => ["rakelib/gemspec.rake"] do |t|
|
139
|
+
require 'yaml'
|
140
|
+
open(t.name, "w") { |f| f.puts MINITEST_GIVEN_SPEC.to_yaml }
|
141
|
+
end
|
142
|
+
|
143
|
+
file "given_core.gemspec" => ["rakelib/gemspec.rake"] do |t|
|
144
|
+
require 'yaml'
|
145
|
+
open(t.name, "w") { |f| f.puts GIVEN_CORE_SPEC.to_yaml }
|
146
|
+
end
|
147
|
+
|
148
|
+
desc "Create a stand-alone gemspec"
|
149
|
+
task :gemspec => ["rspec-given.gemspec", "minitest-given.gemspec", "given_core.gemspec"]
|
150
|
+
|
151
|
+
desc "Check Filelists"
|
152
|
+
task :filelists do
|
153
|
+
puts "==============="
|
154
|
+
puts "GIVEN_CORE_FILES=#{GIVEN_CORE_FILES.inspect}"
|
155
|
+
puts "==============="
|
156
|
+
puts "RSPEC_GIVEN_FILES=#{RSPEC_GIVEN_FILES.inspect}"
|
157
|
+
puts "==============="
|
158
|
+
puts "MINITEST_GIVEN_FILES=#{MINITEST_GIVEN_FILES.inspect}"
|
159
|
+
puts "==============="
|
160
|
+
end
|
161
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require './rakelib/bundler_fix'
|
2
|
+
|
3
|
+
METRICS_FILES = FileList['lib/**/*.rb']
|
4
|
+
|
5
|
+
task :check_flog do
|
6
|
+
sh "type flog >/dev/null 2>&1", :verbose => false do |status|
|
7
|
+
fail "Install flog to generate complexity metrics" unless status
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
task :check_flay do
|
12
|
+
sh "type flay >/dev/null 2>&1", :verbose => false do |status|
|
13
|
+
fail "Install flay to generate complexity metrics" unless status
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
desc "Run complexity metrics"
|
18
|
+
task :flog, [:all] => :check_flog do |t, args|
|
19
|
+
flags = args.all ? "--all" : ""
|
20
|
+
nobundle do
|
21
|
+
sh "flog #{flags} #{METRICS_FILES}"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
desc "Run duplication metrics"
|
26
|
+
task :flay => :check_flay do
|
27
|
+
nobundle do
|
28
|
+
sh "flay #{METRICS_FILES}"
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require './rakelib/bundler_fix'
|
2
|
+
|
3
|
+
task :check_preview do
|
4
|
+
sh "type ghpreview >/dev/null 2>&1", :verbose => false do |status|
|
5
|
+
fail "Install ghpreview to generate a local REAMDE preview page" unless status
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
desc "Generate the GitHub readme locally"
|
10
|
+
task :preview => :check_preview do
|
11
|
+
nobundle do
|
12
|
+
sh "ghpreview #{FileList['README.*']}"
|
13
|
+
end
|
14
|
+
end
|
data/test/before_test.rb
ADDED
@@ -0,0 +1,22 @@
|
|
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
ADDED
@@ -0,0 +1,36 @@
|
|
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
|
metadata
CHANGED
@@ -1,129 +1,113 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-given
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.1.pre
|
4
|
+
version: 3.0.0.beta.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
|
-
-
|
7
|
+
- Jim Weirich
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
|
16
|
-
none: false
|
17
|
-
requirements:
|
18
|
-
- - ! '>='
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: 4.4.0
|
21
|
-
name: minitest
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
14
|
+
name: given_core
|
24
15
|
requirement: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
16
|
requirements:
|
27
|
-
- -
|
17
|
+
- - '='
|
28
18
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
version_requirements: !ruby/object:Gem::Requirement
|
32
|
-
none: false
|
33
|
-
requirements:
|
34
|
-
- - ! '>='
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: 0.6.3
|
37
|
-
name: wrong
|
19
|
+
version: 3.0.0.beta.3
|
38
20
|
type: :runtime
|
39
21
|
prerelease: false
|
40
|
-
requirement: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 0.6.3
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
22
|
version_requirements: !ruby/object:Gem::Requirement
|
48
|
-
none: false
|
49
|
-
requirements:
|
50
|
-
- - ~>
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '3.10'
|
53
|
-
name: rdoc
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
requirement: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
23
|
requirements:
|
59
|
-
- -
|
24
|
+
- - '='
|
60
25
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
26
|
+
version: 3.0.0.beta.3
|
62
27
|
- !ruby/object:Gem::Dependency
|
63
|
-
|
64
|
-
|
28
|
+
name: minitest
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
65
30
|
requirements:
|
66
|
-
- -
|
31
|
+
- - '>'
|
67
32
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3
|
69
|
-
|
70
|
-
type: :development
|
33
|
+
version: '4.3'
|
34
|
+
type: :runtime
|
71
35
|
prerelease: false
|
72
|
-
|
73
|
-
none: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
37
|
requirements:
|
75
|
-
- -
|
38
|
+
- - '>'
|
76
39
|
- !ruby/object:Gem::Version
|
77
|
-
version: '3
|
78
|
-
description:
|
79
|
-
|
80
|
-
|
40
|
+
version: '4.3'
|
41
|
+
description: |
|
42
|
+
Given is a Minitest::Spec extension that allows the use of Given/When/Then
|
43
|
+
terminology when defining specifications.
|
44
|
+
email: jim.weirich@gmail.com
|
81
45
|
executables: []
|
82
46
|
extensions: []
|
83
|
-
extra_rdoc_files:
|
84
|
-
- CHANGELOG.rdoc
|
85
|
-
- Manifest.txt
|
86
|
-
- README.rdoc
|
47
|
+
extra_rdoc_files: []
|
87
48
|
files:
|
88
|
-
-
|
89
|
-
-
|
90
|
-
-
|
91
|
-
- README.
|
49
|
+
- Gemfile
|
50
|
+
- Gemfile.lock
|
51
|
+
- MIT-LICENSE
|
52
|
+
- README.md
|
92
53
|
- Rakefile
|
54
|
+
- TODO
|
55
|
+
- lib/given.rb
|
93
56
|
- lib/minitest-given.rb
|
94
57
|
- lib/minitest/given.rb
|
95
|
-
-
|
96
|
-
-
|
97
|
-
-
|
98
|
-
-
|
99
|
-
- .
|
100
|
-
|
101
|
-
|
58
|
+
- rakelib/bundler_fix.rb
|
59
|
+
- rakelib/gemspec.rake
|
60
|
+
- rakelib/metrics.rake
|
61
|
+
- rakelib/preview.rake
|
62
|
+
- test/before_test.rb
|
63
|
+
- test/meme_test.rb
|
64
|
+
- examples/example_helper.rb
|
65
|
+
- examples/failing/natural_failing_spec.rb
|
66
|
+
- examples/failing/sample_spec.rb
|
67
|
+
- examples/integration/and_spec.rb
|
68
|
+
- examples/integration/failing/eval_subexpression_spec.rb
|
69
|
+
- examples/integration/failing/module_nesting_spec.rb
|
70
|
+
- examples/integration/failing/undefined_method_spec.rb
|
71
|
+
- examples/integration/failing_messages_spec.rb
|
72
|
+
- examples/integration/focused_line_spec.rb
|
73
|
+
- examples/integration/given_spec.rb
|
74
|
+
- examples/integration/invariant_spec.rb
|
75
|
+
- examples/integration/then_spec.rb
|
76
|
+
- examples/loader.rb
|
77
|
+
- examples/minitest_helper.rb
|
78
|
+
- examples/other/line_example.rb
|
79
|
+
- examples/stack/stack.rb
|
80
|
+
- examples/stack/stack_spec.rb
|
81
|
+
- examples/stack/stack_spec1.rb
|
82
|
+
- doc/main.rdoc
|
83
|
+
homepage: http://github.com/jimweirich/rspec-given
|
84
|
+
licenses:
|
85
|
+
- MIT
|
86
|
+
metadata: {}
|
102
87
|
post_install_message:
|
103
88
|
rdoc_options:
|
89
|
+
- --line-numbers
|
90
|
+
- --inline-source
|
104
91
|
- --main
|
105
|
-
-
|
92
|
+
- doc/main.rdoc
|
93
|
+
- --title
|
94
|
+
- Minitest::Spec Given Extensions
|
106
95
|
require_paths:
|
107
96
|
- lib
|
108
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
109
|
-
none: false
|
110
98
|
requirements:
|
111
|
-
- -
|
99
|
+
- - '>='
|
112
100
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
101
|
+
version: 1.9.2
|
114
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
|
-
none: false
|
116
103
|
requirements:
|
117
|
-
- -
|
104
|
+
- - '>'
|
118
105
|
- !ruby/object:Gem::Version
|
119
106
|
version: 1.3.1
|
120
107
|
requirements: []
|
121
|
-
rubyforge_project:
|
122
|
-
rubygems_version:
|
108
|
+
rubyforge_project: given
|
109
|
+
rubygems_version: 2.0.3
|
123
110
|
signing_key:
|
124
|
-
specification_version:
|
125
|
-
summary: Given/When/Then for
|
126
|
-
test_files:
|
127
|
-
- test/test_assertions.rb
|
128
|
-
- test/test_comparison.rb
|
129
|
-
- test/test_version.rb
|
111
|
+
specification_version: 4
|
112
|
+
summary: Given/When/Then Specification Extensions for Minitest::Spec.
|
113
|
+
test_files: []
|
data/.autotest
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
|
3
|
-
require 'autotest/restart'
|
4
|
-
|
5
|
-
# Autotest.add_hook :initialize do |at|
|
6
|
-
# at.extra_files << "../some/external/dependency.rb"
|
7
|
-
#
|
8
|
-
# at.libs << ":../some/external"
|
9
|
-
#
|
10
|
-
# at.add_exception 'vendor'
|
11
|
-
#
|
12
|
-
# at.add_mapping(/dependency.rb/) do |f, _|
|
13
|
-
# at.files_matching(/test_.*rb$/)
|
14
|
-
# end
|
15
|
-
#
|
16
|
-
# %w(TestA TestB).each do |klass|
|
17
|
-
# at.extra_class_map[klass] = "test/test_misc.rb"
|
18
|
-
# end
|
19
|
-
# end
|
20
|
-
|
21
|
-
# Autotest.add_hook :run_command do |at|
|
22
|
-
# system "rake build"
|
23
|
-
# end
|
data/.gemtest
DELETED
File without changes
|
data/CHANGELOG.rdoc
DELETED
data/Manifest.txt
DELETED
data/minitest-given.gemspec
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = "minitest-given"
|
5
|
-
s.version = "0.1.pre.20130118205038"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Mike Moore"]
|
9
|
-
s.date = "2013-01-19"
|
10
|
-
s.description = "Adds Given/When/Then built on top of minitest's spec DSL."
|
11
|
-
s.email = ["mike@blowmage.com"]
|
12
|
-
s.extra_rdoc_files = ["CHANGELOG.rdoc", "Manifest.txt", "README.rdoc"]
|
13
|
-
s.files = [".autotest", "CHANGELOG.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "lib/minitest-given.rb", "lib/minitest/given.rb", "minitest-given.gemspec", "test/test_assertions.rb", "test/test_comparison.rb", "test/test_version.rb", ".gemtest"]
|
14
|
-
s.homepage = "http://blowmage.com/minitest-given"
|
15
|
-
s.rdoc_options = ["--main", "README.rdoc"]
|
16
|
-
s.require_paths = ["lib"]
|
17
|
-
s.rubyforge_project = "minitest-given"
|
18
|
-
s.rubygems_version = "1.8.23"
|
19
|
-
s.summary = "Given/When/Then for minitest"
|
20
|
-
s.test_files = ["test/test_assertions.rb", "test/test_comparison.rb", "test/test_version.rb"]
|
21
|
-
|
22
|
-
if s.respond_to? :specification_version then
|
23
|
-
s.specification_version = 3
|
24
|
-
|
25
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
|
-
s.add_runtime_dependency(%q<minitest>, [">= 4.4.0"])
|
27
|
-
s.add_runtime_dependency(%q<wrong>, [">= 0.6.3"])
|
28
|
-
s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
|
29
|
-
s.add_development_dependency(%q<hoe>, ["~> 3.4"])
|
30
|
-
else
|
31
|
-
s.add_dependency(%q<minitest>, [">= 4.4.0"])
|
32
|
-
s.add_dependency(%q<wrong>, [">= 0.6.3"])
|
33
|
-
s.add_dependency(%q<rdoc>, ["~> 3.10"])
|
34
|
-
s.add_dependency(%q<hoe>, ["~> 3.4"])
|
35
|
-
end
|
36
|
-
else
|
37
|
-
s.add_dependency(%q<minitest>, [">= 4.4.0"])
|
38
|
-
s.add_dependency(%q<wrong>, [">= 0.6.3"])
|
39
|
-
s.add_dependency(%q<rdoc>, ["~> 3.10"])
|
40
|
-
s.add_dependency(%q<hoe>, ["~> 3.4"])
|
41
|
-
end
|
42
|
-
end
|