true_test 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +18 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/lib/true_test.rb +16 -0
- data/lib/true_test/assertion.rb +43 -0
- data/lib/true_test/compatibility/test_unit.rb +11 -0
- data/lib/true_test/context.rb +45 -0
- data/lib/true_test/dsl.rb +29 -0
- data/lib/true_test/fixture.rb +34 -0
- data/test/helper.rb +17 -0
- data/test/test_true_test.rb +64 -0
- data/true_test.gemspec +66 -0
- metadata +129 -0
data/.document
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "bundler", "~> 1.0.0"
|
10
|
+
gem "jeweler", "~> 1.5.2"
|
11
|
+
gem "rcov", ">= 0"
|
12
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
git (1.2.5)
|
5
|
+
jeweler (1.5.2)
|
6
|
+
bundler (~> 1.0.0)
|
7
|
+
git (>= 1.2.5)
|
8
|
+
rake
|
9
|
+
rake (0.8.7)
|
10
|
+
rcov (0.9.9)
|
11
|
+
|
12
|
+
PLATFORMS
|
13
|
+
ruby
|
14
|
+
|
15
|
+
DEPENDENCIES
|
16
|
+
bundler (~> 1.0.0)
|
17
|
+
jeweler (~> 1.5.2)
|
18
|
+
rcov
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2010 Ryan Sonnek
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
= true_unit
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Contributing to true_unit
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
9
|
+
* Fork the project
|
10
|
+
* Start a feature/bugfix branch
|
11
|
+
* Commit and push until you are happy with your contribution
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2010 Ryan Sonnek. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'rake'
|
11
|
+
|
12
|
+
require 'jeweler'
|
13
|
+
Jeweler::Tasks.new do |gem|
|
14
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
15
|
+
gem.name = "true_test"
|
16
|
+
gem.homepage = "http://github.com/wireframe/true_test"
|
17
|
+
gem.license = "MIT"
|
18
|
+
gem.summary = %Q{Ruby testing framework for writing *true* tests}
|
19
|
+
gem.description = %Q{Ruby testing framework for writing *true* tests}
|
20
|
+
gem.email = "ryan@codecrate.com"
|
21
|
+
gem.authors = ["Ryan Sonnek"]
|
22
|
+
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
23
|
+
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
24
|
+
# gem.add_runtime_dependency 'jabber4r', '> 0.1'
|
25
|
+
# gem.add_development_dependency 'rspec', '> 1.2.3'
|
26
|
+
end
|
27
|
+
Jeweler::RubygemsDotOrgTasks.new
|
28
|
+
|
29
|
+
require 'rake/testtask'
|
30
|
+
Rake::TestTask.new(:test) do |test|
|
31
|
+
test.libs << 'lib' << 'test'
|
32
|
+
test.pattern = 'test/**/test_*.rb'
|
33
|
+
test.verbose = true
|
34
|
+
end
|
35
|
+
|
36
|
+
require 'rcov/rcovtask'
|
37
|
+
Rcov::RcovTask.new do |test|
|
38
|
+
test.libs << 'test'
|
39
|
+
test.pattern = 'test/**/test_*.rb'
|
40
|
+
test.verbose = true
|
41
|
+
end
|
42
|
+
|
43
|
+
task :default => :test
|
44
|
+
|
45
|
+
require 'rake/rdoctask'
|
46
|
+
Rake::RDocTask.new do |rdoc|
|
47
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
48
|
+
|
49
|
+
rdoc.rdoc_dir = 'rdoc'
|
50
|
+
rdoc.title = "true_test #{version}"
|
51
|
+
rdoc.rdoc_files.include('README*')
|
52
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
53
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
data/lib/true_test.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'true_test', 'context')
|
2
|
+
require File.join(File.dirname(__FILE__), 'true_test', 'assertion')
|
3
|
+
require File.join(File.dirname(__FILE__), 'true_test', 'fixture')
|
4
|
+
require File.join(File.dirname(__FILE__), 'true_test', 'dsl')
|
5
|
+
|
6
|
+
module TrueTest
|
7
|
+
class << self
|
8
|
+
def after_assertion(&block)
|
9
|
+
after_assertion_callbacks << block
|
10
|
+
end
|
11
|
+
def after_assertion_callbacks
|
12
|
+
@@after_assertion_callbacks ||= []
|
13
|
+
@@after_assertion_callbacks
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
module TrueTest
|
2
|
+
class Assertion
|
3
|
+
def initialize(description = nil, positive = true, &block)
|
4
|
+
@description = description
|
5
|
+
@positive = positive
|
6
|
+
@block = block || proc {false}
|
7
|
+
end
|
8
|
+
def evaluate(binding)
|
9
|
+
@passed = false
|
10
|
+
begin
|
11
|
+
@result = binding.instance_eval &@block
|
12
|
+
@passed = @positive ? @result : !@result
|
13
|
+
rescue => e
|
14
|
+
@error = e
|
15
|
+
end
|
16
|
+
ensure
|
17
|
+
TrueTest.after_assertion_callbacks.each do |callback|
|
18
|
+
callback.call(self)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
def passed?
|
22
|
+
@passed
|
23
|
+
end
|
24
|
+
def error
|
25
|
+
@error
|
26
|
+
end
|
27
|
+
def description
|
28
|
+
[(@positive ? 'should' : 'should not'), @description, TrueTest::Context.current.description].join(' ')
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
class PositiveAssertion < Assertion
|
33
|
+
def initialize(description = nil, &block)
|
34
|
+
super(description, true, &block)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
class NegativeAssertion < Assertion
|
39
|
+
def initialize(description = nil, &block)
|
40
|
+
super(description, false, &block)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
class Test::Unit::TestCase
|
2
|
+
extend TrueTest::DSL
|
3
|
+
|
4
|
+
TrueTest.after_assertion do |assertion|
|
5
|
+
test_name = ['test', assertion.description].join(' ').to_sym
|
6
|
+
self.send(:define_method, test_name) do
|
7
|
+
raise assertion.error if assertion.error
|
8
|
+
assert assertion.passed?
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module TrueTest
|
2
|
+
class Context
|
3
|
+
attr_accessor :setup
|
4
|
+
class << self
|
5
|
+
def current
|
6
|
+
@@context ||= TrueTest::Context.new
|
7
|
+
@@context
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def setup_fixtures(binding, keys)
|
12
|
+
context = self
|
13
|
+
keys.each do |key|
|
14
|
+
self.evaluate binding do
|
15
|
+
context.fixtures << TrueTest::Fixture.evaluate(key, binding)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
def teardown(binding)
|
20
|
+
fixtures.each do |fixture|
|
21
|
+
fixture.unbind binding
|
22
|
+
end
|
23
|
+
fixtures.clear
|
24
|
+
@@context = nil
|
25
|
+
end
|
26
|
+
def fixtures
|
27
|
+
@fixtures ||= []
|
28
|
+
@fixtures
|
29
|
+
end
|
30
|
+
def description
|
31
|
+
parts = []
|
32
|
+
parts += ['when', @setup] if @setup
|
33
|
+
parts += ['with', fixtures.collect(&:description).join(' and ')] if fixtures.any?
|
34
|
+
parts.join(' ')
|
35
|
+
end
|
36
|
+
#safe evaluation that creates a failed test if an exception is raised instead of blowing up entire suite
|
37
|
+
def evaluate(binding, &block)
|
38
|
+
begin
|
39
|
+
binding.instance_eval &block
|
40
|
+
rescue => e
|
41
|
+
TrueTest::PositiveAssertion.new('not raise error', &block).evaluate binding
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module TrueTest
|
2
|
+
module DSL
|
3
|
+
def register_fixture(key, &block)
|
4
|
+
TrueTest::Fixture.register key, &block
|
5
|
+
end
|
6
|
+
|
7
|
+
def current_context
|
8
|
+
TrueTest::Context.current
|
9
|
+
end
|
10
|
+
def with(*fixtures, &block)
|
11
|
+
current_context.setup_fixtures self, fixtures
|
12
|
+
current_context.evaluate self, &block
|
13
|
+
current_context.teardown self
|
14
|
+
end
|
15
|
+
|
16
|
+
def setup(description = nil, &block)
|
17
|
+
current_context.setup = description
|
18
|
+
yield
|
19
|
+
end
|
20
|
+
|
21
|
+
def should(description = nil, &block)
|
22
|
+
TrueTest::PositiveAssertion.new(description, &block).evaluate self
|
23
|
+
end
|
24
|
+
def should_not(description = nil, &block)
|
25
|
+
TrueTest::NegativeAssertion.new(description, &block).evaluate self
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module TrueTest
|
2
|
+
class Fixture
|
3
|
+
attr_accessor :key, :block
|
4
|
+
class << self
|
5
|
+
def register(key, &block)
|
6
|
+
registry[key] = TrueTest::Fixture.new(key, &block)
|
7
|
+
end
|
8
|
+
def evaluate(key, binding)
|
9
|
+
fixture = registry[key]
|
10
|
+
raise "No fixture found in registry with key #{key}: #{registry.keys.inspect}" unless fixture
|
11
|
+
fixture.evaluate binding
|
12
|
+
fixture
|
13
|
+
end
|
14
|
+
def registry
|
15
|
+
@@registry ||= {}
|
16
|
+
@@registry
|
17
|
+
end
|
18
|
+
end
|
19
|
+
def initialize(key, &block)
|
20
|
+
@key = key
|
21
|
+
@block = block
|
22
|
+
end
|
23
|
+
def description
|
24
|
+
@key.to_s.gsub('_', ' ')
|
25
|
+
end
|
26
|
+
def evaluate(binding)
|
27
|
+
@result = binding.instance_eval &@block
|
28
|
+
binding.instance_variable_set "@#{@key}", @result
|
29
|
+
end
|
30
|
+
def unbind(binding)
|
31
|
+
binding.instance_variable_set "@#{@key}", nil
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
data/test/helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'test/unit'
|
11
|
+
|
12
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
13
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
14
|
+
require 'true_test'
|
15
|
+
|
16
|
+
class Test::Unit::TestCase
|
17
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'helper')
|
2
|
+
require File.join(File.dirname(__FILE__), '..', 'lib', 'true_test', 'compatibility', 'test_unit')
|
3
|
+
|
4
|
+
class TestTrueTest < Test::Unit::TestCase
|
5
|
+
# declare fixtures
|
6
|
+
class User
|
7
|
+
def do_something
|
8
|
+
@did_something = true
|
9
|
+
end
|
10
|
+
def did_something?
|
11
|
+
@did_something
|
12
|
+
end
|
13
|
+
def did_something_else?
|
14
|
+
@did_something_else
|
15
|
+
end
|
16
|
+
def blow_up!
|
17
|
+
raise 'holy crap!'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
class Blog
|
21
|
+
end
|
22
|
+
register_fixture :a_basic_user do
|
23
|
+
User.new
|
24
|
+
end
|
25
|
+
register_fixture :a_basic_blog do
|
26
|
+
Blog.new
|
27
|
+
end
|
28
|
+
register_fixture :a_bad_fixture do
|
29
|
+
raise 'boom!'
|
30
|
+
end
|
31
|
+
|
32
|
+
#write tests
|
33
|
+
with :a_basic_user, :a_basic_blog do
|
34
|
+
setup 'executing @a_basic_user.do_something' do
|
35
|
+
@a_basic_user.do_something
|
36
|
+
end
|
37
|
+
|
38
|
+
should 'define @a_basic_user' do
|
39
|
+
defined? @a_basic_user
|
40
|
+
end
|
41
|
+
should 'define @a_basic_blog' do
|
42
|
+
defined? @a_basic_user
|
43
|
+
end
|
44
|
+
should 'have did_something?' do
|
45
|
+
@a_basic_user.did_something?
|
46
|
+
end
|
47
|
+
should_not 'have did_something_else?' do
|
48
|
+
@a_basic_user.did_something_else?
|
49
|
+
end
|
50
|
+
should 'have done some other stuff, but not yet implemented'
|
51
|
+
end
|
52
|
+
|
53
|
+
with :a_basic_user do
|
54
|
+
setup 'executing @a_basic_user.blow_up!' do
|
55
|
+
@a_basic_user.blow_up!
|
56
|
+
end
|
57
|
+
|
58
|
+
should 'error out before getting here, but not break the whole suite'
|
59
|
+
end
|
60
|
+
|
61
|
+
with :a_bad_fixture do
|
62
|
+
should 'error out before getting here, but not break the whole suite'
|
63
|
+
end
|
64
|
+
end
|
data/true_test.gemspec
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{true_test}
|
8
|
+
s.version = "0.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Ryan Sonnek"]
|
12
|
+
s.date = %q{2011-01-05}
|
13
|
+
s.description = %q{Ruby testing framework for writing *true* tests}
|
14
|
+
s.email = %q{ryan@codecrate.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"lib/true_test.rb",
|
28
|
+
"lib/true_test/assertion.rb",
|
29
|
+
"lib/true_test/compatibility/test_unit.rb",
|
30
|
+
"lib/true_test/context.rb",
|
31
|
+
"lib/true_test/dsl.rb",
|
32
|
+
"lib/true_test/fixture.rb",
|
33
|
+
"test/helper.rb",
|
34
|
+
"test/test_true_test.rb",
|
35
|
+
"true_test.gemspec"
|
36
|
+
]
|
37
|
+
s.homepage = %q{http://github.com/wireframe/true_test}
|
38
|
+
s.licenses = ["MIT"]
|
39
|
+
s.require_paths = ["lib"]
|
40
|
+
s.rubygems_version = %q{1.3.7}
|
41
|
+
s.summary = %q{Ruby testing framework for writing *true* tests}
|
42
|
+
s.test_files = [
|
43
|
+
"test/helper.rb",
|
44
|
+
"test/test_true_test.rb"
|
45
|
+
]
|
46
|
+
|
47
|
+
if s.respond_to? :specification_version then
|
48
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
49
|
+
s.specification_version = 3
|
50
|
+
|
51
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
52
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
53
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
54
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
55
|
+
else
|
56
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
57
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
58
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
59
|
+
end
|
60
|
+
else
|
61
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
62
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
63
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
metadata
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: true_test
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 0.1.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Ryan Sonnek
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-01-05 00:00:00 -06:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
prerelease: false
|
23
|
+
type: :development
|
24
|
+
name: bundler
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 23
|
31
|
+
segments:
|
32
|
+
- 1
|
33
|
+
- 0
|
34
|
+
- 0
|
35
|
+
version: 1.0.0
|
36
|
+
requirement: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
prerelease: false
|
39
|
+
type: :development
|
40
|
+
name: jeweler
|
41
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
hash: 7
|
47
|
+
segments:
|
48
|
+
- 1
|
49
|
+
- 5
|
50
|
+
- 2
|
51
|
+
version: 1.5.2
|
52
|
+
requirement: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
prerelease: false
|
55
|
+
type: :development
|
56
|
+
name: rcov
|
57
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
hash: 3
|
63
|
+
segments:
|
64
|
+
- 0
|
65
|
+
version: "0"
|
66
|
+
requirement: *id003
|
67
|
+
description: Ruby testing framework for writing *true* tests
|
68
|
+
email: ryan@codecrate.com
|
69
|
+
executables: []
|
70
|
+
|
71
|
+
extensions: []
|
72
|
+
|
73
|
+
extra_rdoc_files:
|
74
|
+
- LICENSE.txt
|
75
|
+
- README.rdoc
|
76
|
+
files:
|
77
|
+
- .document
|
78
|
+
- Gemfile
|
79
|
+
- Gemfile.lock
|
80
|
+
- LICENSE.txt
|
81
|
+
- README.rdoc
|
82
|
+
- Rakefile
|
83
|
+
- VERSION
|
84
|
+
- lib/true_test.rb
|
85
|
+
- lib/true_test/assertion.rb
|
86
|
+
- lib/true_test/compatibility/test_unit.rb
|
87
|
+
- lib/true_test/context.rb
|
88
|
+
- lib/true_test/dsl.rb
|
89
|
+
- lib/true_test/fixture.rb
|
90
|
+
- test/helper.rb
|
91
|
+
- test/test_true_test.rb
|
92
|
+
- true_test.gemspec
|
93
|
+
has_rdoc: true
|
94
|
+
homepage: http://github.com/wireframe/true_test
|
95
|
+
licenses:
|
96
|
+
- MIT
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options: []
|
99
|
+
|
100
|
+
require_paths:
|
101
|
+
- lib
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
+
none: false
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
hash: 3
|
108
|
+
segments:
|
109
|
+
- 0
|
110
|
+
version: "0"
|
111
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
hash: 3
|
117
|
+
segments:
|
118
|
+
- 0
|
119
|
+
version: "0"
|
120
|
+
requirements: []
|
121
|
+
|
122
|
+
rubyforge_project:
|
123
|
+
rubygems_version: 1.3.7
|
124
|
+
signing_key:
|
125
|
+
specification_version: 3
|
126
|
+
summary: Ruby testing framework for writing *true* tests
|
127
|
+
test_files:
|
128
|
+
- test/helper.rb
|
129
|
+
- test/test_true_test.rb
|