shoulda-context 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/CONTRIBUTION_GUIDELINES.rdoc +10 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +20 -0
- data/MIT-LICENSE +22 -0
- data/README.rdoc +53 -0
- data/Rakefile +44 -0
- data/bin/convert_to_should_syntax +42 -0
- data/lib/shoulda-context.rb +12 -0
- data/lib/shoulda/context/assertions.rb +81 -0
- data/lib/shoulda/context/autoload_macros.rb +46 -0
- data/lib/shoulda/context/context.rb +446 -0
- data/lib/shoulda/context/proc_extensions.rb +14 -0
- data/lib/shoulda/context/tasks.rb +3 -0
- data/lib/shoulda/context/tasks/list_tests.rake +29 -0
- data/lib/shoulda/context/tasks/yaml_to_shoulda.rake +28 -0
- data/lib/shoulda/context/version.rb +5 -0
- data/rails/init.rb +4 -0
- data/test/fake_rails_root/test/shoulda_macros/custom_macro.rb +6 -0
- data/test/fake_rails_root/vendor/gems/gem_with_macro-0.0.1/shoulda_macros/gem_macro.rb +6 -0
- data/test/fake_rails_root/vendor/plugins/plugin_with_macro/shoulda_macros/plugin_macro.rb +6 -0
- data/test/shoulda/autoload_macro_test.rb +18 -0
- data/test/shoulda/context_test.rb +368 -0
- data/test/shoulda/convert_to_should_syntax_test.rb +63 -0
- data/test/shoulda/helpers_test.rb +124 -0
- data/test/shoulda/should_test.rb +271 -0
- data/test/test_helper.rb +11 -0
- metadata +101 -0
data/test/test_helper.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
require 'test/unit'
|
3
|
+
require 'mocha'
|
4
|
+
|
5
|
+
shoulda_path = File.join(File.dirname(__FILE__), '..', 'lib')
|
6
|
+
$LOAD_PATH << shoulda_path
|
7
|
+
require 'shoulda-context'
|
8
|
+
|
9
|
+
Shoulda.autoload_macros File.join(File.dirname(__FILE__), 'fake_rails_root'),
|
10
|
+
File.join("vendor", "{plugins,gems}", "*")
|
11
|
+
|
metadata
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: shoulda-context
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 299253597
|
5
|
+
prerelease: true
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
- beta1
|
11
|
+
version: 1.0.0.beta1
|
12
|
+
platform: ruby
|
13
|
+
authors:
|
14
|
+
- thoughtbot, inc.
|
15
|
+
- Tammer Saleh
|
16
|
+
- Joe Ferris
|
17
|
+
- Ryan McGeary
|
18
|
+
- Dan Croak
|
19
|
+
- Matt Jankowski
|
20
|
+
autorequire:
|
21
|
+
bindir: bin
|
22
|
+
cert_chain: []
|
23
|
+
|
24
|
+
date: 2011-01-19 00:00:00 -05:00
|
25
|
+
default_executable: convert_to_should_syntax
|
26
|
+
dependencies: []
|
27
|
+
|
28
|
+
description: Context framework extracted from Shoulda
|
29
|
+
email: support@thoughtbot.com
|
30
|
+
executables:
|
31
|
+
- convert_to_should_syntax
|
32
|
+
extensions: []
|
33
|
+
|
34
|
+
extra_rdoc_files:
|
35
|
+
- README.rdoc
|
36
|
+
- CONTRIBUTION_GUIDELINES.rdoc
|
37
|
+
files:
|
38
|
+
- CONTRIBUTION_GUIDELINES.rdoc
|
39
|
+
- Gemfile
|
40
|
+
- Gemfile.lock
|
41
|
+
- MIT-LICENSE
|
42
|
+
- Rakefile
|
43
|
+
- README.rdoc
|
44
|
+
- bin/convert_to_should_syntax
|
45
|
+
- lib/shoulda/context/assertions.rb
|
46
|
+
- lib/shoulda/context/autoload_macros.rb
|
47
|
+
- lib/shoulda/context/context.rb
|
48
|
+
- lib/shoulda/context/proc_extensions.rb
|
49
|
+
- lib/shoulda/context/tasks/list_tests.rake
|
50
|
+
- lib/shoulda/context/tasks/yaml_to_shoulda.rake
|
51
|
+
- lib/shoulda/context/tasks.rb
|
52
|
+
- lib/shoulda/context/version.rb
|
53
|
+
- lib/shoulda-context.rb
|
54
|
+
- rails/init.rb
|
55
|
+
- test/fake_rails_root/test/shoulda_macros/custom_macro.rb
|
56
|
+
- test/fake_rails_root/vendor/gems/gem_with_macro-0.0.1/shoulda_macros/gem_macro.rb
|
57
|
+
- test/fake_rails_root/vendor/plugins/plugin_with_macro/shoulda_macros/plugin_macro.rb
|
58
|
+
- test/shoulda/autoload_macro_test.rb
|
59
|
+
- test/shoulda/context_test.rb
|
60
|
+
- test/shoulda/convert_to_should_syntax_test.rb
|
61
|
+
- test/shoulda/helpers_test.rb
|
62
|
+
- test/shoulda/should_test.rb
|
63
|
+
- test/test_helper.rb
|
64
|
+
has_rdoc: true
|
65
|
+
homepage: http://thoughtbot.com/community/
|
66
|
+
licenses: []
|
67
|
+
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options:
|
70
|
+
- --line-numbers
|
71
|
+
- --main
|
72
|
+
- README.rdoc
|
73
|
+
require_paths:
|
74
|
+
- lib
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
hash: 3
|
81
|
+
segments:
|
82
|
+
- 0
|
83
|
+
version: "0"
|
84
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
hash: 3
|
90
|
+
segments:
|
91
|
+
- 0
|
92
|
+
version: "0"
|
93
|
+
requirements: []
|
94
|
+
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 1.3.7
|
97
|
+
signing_key:
|
98
|
+
specification_version: 3
|
99
|
+
summary: Context framework extracted from Shoulda
|
100
|
+
test_files: []
|
101
|
+
|