mcmire-context 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,23 @@
1
+ require File.dirname(__FILE__) + '/test_helper.rb'
2
+
3
+ class TestTest < Test::Unit::TestCase
4
+ def test_test_aliases
5
+ [:test, :it, :should, :tests].each do |method_alias|
6
+ assert self.class.respond_to?(method_alias)
7
+ end
8
+ end
9
+
10
+ def test_before_test_aliases
11
+ [:before_test, :before_it, :before_should, :before_tests].each do |method_alias|
12
+ assert self.class.respond_to?(method_alias), method_alias.inspect
13
+ end
14
+ end
15
+
16
+ context "A test block" do
17
+ it "should create a test_xxx method" do
18
+ self.class.test("should create a test method") { true }
19
+
20
+ assert self.respond_to?("test: A test block should create a test method")
21
+ end
22
+ end
23
+ end
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mcmire-context
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.6
5
+ platform: ruby
6
+ authors:
7
+ - Jeremy McAnally
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-01-06 00:00:00 -06:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: Contexts and DSL sugar for your tests
17
+ email: jeremy@entp.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README.rdoc
24
+ files:
25
+ - .gitignore
26
+ - History.txt
27
+ - License.txt
28
+ - README.rdoc
29
+ - Rakefile
30
+ - countloc.rb
31
+ - coverage/-Library-Ruby-Gems-1_8-gems-rcov-0_8_1_2_0-lib-rcov_rb.html
32
+ - coverage/index.html
33
+ - coverage/lib-context-context_rb.html
34
+ - coverage/lib-context-core_ext-string_rb.html
35
+ - coverage/lib-context-lifecycle_rb.html
36
+ - coverage/lib-context-shared_behavior_rb.html
37
+ - coverage/lib-context-suite_rb.html
38
+ - coverage/lib-context-test_rb.html
39
+ - coverage/lib-context-version_rb.html
40
+ - coverage/lib-context_rb.html
41
+ - lib/context.rb
42
+ - lib/context/core.rb
43
+ - lib/context/core_ext/rails_hacks.rb
44
+ - lib/context/core_ext/string.rb
45
+ - lib/context/lifecycle.rb
46
+ - lib/context/shared_behavior.rb
47
+ - lib/context/suite.rb
48
+ - lib/context/test.rb
49
+ - lib/context/version.rb
50
+ - tasks/deployment.rake
51
+ - tasks/environment.rake
52
+ - test/test_context.rb
53
+ - test/test_core_ext.rb
54
+ - test/test_helper.rb
55
+ - test/test_lifecycle.rb
56
+ - test/test_nested_lifecycle.rb
57
+ - test/test_shared.rb
58
+ - test/test_test.rb
59
+ has_rdoc: true
60
+ homepage: http://github.com/jeremymcanally/context
61
+ licenses: []
62
+
63
+ post_install_message:
64
+ rdoc_options:
65
+ - --charset=UTF-8
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: "0"
73
+ version:
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: "0"
79
+ version:
80
+ requirements: []
81
+
82
+ rubyforge_project:
83
+ rubygems_version: 1.3.5
84
+ signing_key:
85
+ specification_version: 3
86
+ summary: Contexts and DSL sugar for your tests
87
+ test_files:
88
+ - test/test_context.rb
89
+ - test/test_core_ext.rb
90
+ - test/test_helper.rb
91
+ - test/test_lifecycle.rb
92
+ - test/test_nested_lifecycle.rb
93
+ - test/test_shared.rb
94
+ - test/test_test.rb