shoulda 3.0.1 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Appraisals +15 -0
- data/CONTRIBUTING.md +38 -0
- data/README.md +1 -1
- data/Rakefile +7 -5
- data/features/rails_integration.feature +3 -3
- data/features/step_definitions/rails_steps.rb +14 -14
- data/features/support/env.rb +9 -0
- data/gemfiles/3.0.gemfile +7 -0
- data/gemfiles/3.0.gemfile.lock +127 -0
- data/gemfiles/3.1.gemfile +9 -0
- data/gemfiles/3.1.gemfile.lock +149 -0
- data/gemfiles/3.2.gemfile +9 -0
- data/gemfiles/3.2.gemfile.lock +146 -0
- data/lib/shoulda.rb +2 -3
- data/lib/shoulda/version.rb +1 -1
- data/shoulda.gemspec +7 -6
- metadata +93 -124
- data/CONTRIBUTION_GUIDELINES.rdoc +0 -10
data/Appraisals
ADDED
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
We love pull requests. Here's a quick guide:
|
2
|
+
|
3
|
+
1. Fork the repo.
|
4
|
+
|
5
|
+
2. Run the tests. We only take pull requests with passing tests, and it's great
|
6
|
+
to know that you have a clean slate: `bundle && rake`
|
7
|
+
|
8
|
+
3. Add a test for your change. Only refactoring and documentation changes
|
9
|
+
require no new tests. If you are adding functionality or fixing a bug, we need
|
10
|
+
a test!
|
11
|
+
|
12
|
+
4. Make the test pass.
|
13
|
+
|
14
|
+
5. Push to your fork and submit a pull request.
|
15
|
+
|
16
|
+
|
17
|
+
At this point you're waiting on us. We like to at least comment on, if not
|
18
|
+
accept, pull requests within three business days (and, typically, one business
|
19
|
+
day). We may suggest some changes or improvements or alternatives.
|
20
|
+
|
21
|
+
Some things that will increase the chance that your pull request is accepted,
|
22
|
+
taken straight from the Ruby on Rails guide:
|
23
|
+
|
24
|
+
* Use Rails idioms and helpers
|
25
|
+
* Include tests that fail without your code, and pass with it
|
26
|
+
* Update the documentation, the surrounding one, examples elsewhere, guides,
|
27
|
+
whatever is affected by your contribution
|
28
|
+
|
29
|
+
Syntax:
|
30
|
+
|
31
|
+
* Two spaces, no tabs.
|
32
|
+
* No trailing whitespace. Blank lines should not have any space.
|
33
|
+
* Prefer &&/|| over and/or.
|
34
|
+
* MyClass.my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
35
|
+
* a = b and not a=b.
|
36
|
+
* Follow the conventions you see used in the source already.
|
37
|
+
|
38
|
+
And in case we didn't emphasize it enough: we love tests!
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# shoulda [![Build Status](
|
1
|
+
# shoulda [![Build Status](https://secure.travis-ci.org/thoughtbot/shoulda.png)](http://travis-ci.org/thoughtbot/shoulda)
|
2
2
|
|
3
3
|
The shoulda gem is a meta gem with two dependencies:
|
4
4
|
|
data/Rakefile
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
require 'bundler/setup'
|
2
|
-
require 'rubygems'
|
3
2
|
require 'bundler/gem_tasks'
|
4
3
|
require 'cucumber/rake/task'
|
5
|
-
|
6
|
-
desc "Clean files generated by rake tasks"
|
7
|
-
task :clobber => [:clobber_rdoc, :clobber_package]
|
4
|
+
require 'appraisal'
|
8
5
|
|
9
6
|
Cucumber::Rake::Task.new do |t|
|
10
7
|
t.fork = true
|
11
8
|
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
|
12
9
|
end
|
13
10
|
|
11
|
+
desc 'Test the plugin under all supported Rails versions.'
|
12
|
+
task :all => ["appraisal:cleanup", "appraisal:install"] do
|
13
|
+
exec('rake appraisal cucumber')
|
14
|
+
end
|
15
|
+
|
14
16
|
desc 'Default: run cucumber features'
|
15
|
-
task :default => [:
|
17
|
+
task :default => [:all]
|
@@ -13,7 +13,7 @@ Feature: integrate with Rails
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
"""
|
16
|
-
When I successfully run
|
16
|
+
When I successfully run `bundle exec rake db:migrate --trace`
|
17
17
|
And I write to "app/models/user.rb" with:
|
18
18
|
"""
|
19
19
|
class User < ActiveRecord::Base
|
@@ -54,7 +54,7 @@ Feature: integrate with Rails
|
|
54
54
|
should assign_to(:example)
|
55
55
|
end
|
56
56
|
"""
|
57
|
-
When I successfully run
|
57
|
+
When I successfully run `bundle exec rake test TESTOPTS='-v' --trace`
|
58
58
|
Then the output should contain "1 tests, 1 assertions, 0 failures, 0 errors"
|
59
59
|
And the output should contain "2 tests, 2 assertions, 0 failures, 0 errors"
|
60
60
|
And the output should contain "User should require name to be set"
|
@@ -81,7 +81,7 @@ Feature: integrate with Rails
|
|
81
81
|
it { should assign_to(:example) }
|
82
82
|
end
|
83
83
|
"""
|
84
|
-
When I successfully run
|
84
|
+
When I successfully run `bundle exec rake spec SPEC_OPTS=-fs --trace`
|
85
85
|
Then the output should contain "2 examples, 0 failures"
|
86
86
|
And the output should contain "should require name to be set"
|
87
87
|
And the output should contain "should assign @example"
|
@@ -3,49 +3,49 @@ APP_NAME = 'testapp'.freeze
|
|
3
3
|
|
4
4
|
When /^I generate a new rails application$/ do
|
5
5
|
steps %{
|
6
|
-
When I run
|
6
|
+
When I run `bundle exec rails new #{APP_NAME}`
|
7
7
|
And I cd to "#{APP_NAME}"
|
8
8
|
And I write to "Gemfile" with:
|
9
9
|
"""
|
10
10
|
source "http://rubygems.org"
|
11
|
-
gem 'rails', '3.0.
|
12
|
-
gem 'sqlite3
|
11
|
+
gem 'rails', '3.0.12'
|
12
|
+
gem 'sqlite3'
|
13
13
|
"""
|
14
|
-
And I successfully run
|
14
|
+
And I successfully run `bundle install --local`
|
15
15
|
}
|
16
16
|
end
|
17
17
|
|
18
18
|
When /^I configure the application to use "([^\"]+)" from this project$/ do |name|
|
19
19
|
append_to_gemfile "gem '#{name}', :path => '#{PROJECT_ROOT}'"
|
20
|
-
steps %{And I run
|
20
|
+
steps %{And I run `bundle install --local`}
|
21
21
|
end
|
22
22
|
|
23
23
|
When /^I run the rspec generator$/ do
|
24
24
|
steps %{
|
25
|
-
When I successfully run
|
25
|
+
When I successfully run `rails generate rspec:install`
|
26
26
|
}
|
27
27
|
end
|
28
28
|
|
29
29
|
When /^I configure the application to use rspec\-rails$/ do
|
30
30
|
append_to_gemfile "gem 'rspec-rails'"
|
31
|
-
steps %{And I run
|
31
|
+
steps %{And I run `bundle install --local`}
|
32
32
|
end
|
33
33
|
|
34
34
|
When /^I configure the application to use shoulda-context$/ do
|
35
|
-
append_to_gemfile "gem 'shoulda-context'
|
36
|
-
steps %{And I run
|
35
|
+
append_to_gemfile "gem 'shoulda-context'"
|
36
|
+
steps %{And I run `bundle install --local`}
|
37
37
|
end
|
38
38
|
|
39
39
|
When /^I configure the application to use shoulda$/ do
|
40
|
-
append_to_gemfile "gem 'shoulda-matchers',
|
41
|
-
append_to_gemfile "gem 'shoulda-context',
|
40
|
+
append_to_gemfile "gem 'shoulda-matchers', '~> 1.0', :require => false"
|
41
|
+
append_to_gemfile "gem 'shoulda-context', '~> 1.0', :require => false"
|
42
42
|
append_to_gemfile "gem 'shoulda', :path => '../../..'"
|
43
|
-
steps %{And I run
|
43
|
+
steps %{And I run `bundle install --local`}
|
44
44
|
end
|
45
45
|
|
46
46
|
When /^I configure the application to use shoulda-matchers$/ do
|
47
|
-
append_to_gemfile "gem 'shoulda-matchers',
|
48
|
-
steps %{And I run
|
47
|
+
append_to_gemfile "gem 'shoulda-matchers', '~> 1.0'"
|
48
|
+
steps %{And I run `bundle install --local`}
|
49
49
|
end
|
50
50
|
|
51
51
|
When /^I configure a wildcard route$/ do
|
data/features/support/env.rb
CHANGED
@@ -0,0 +1,127 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/jferris/Source/shoulda
|
3
|
+
specs:
|
4
|
+
shoulda (3.1.0)
|
5
|
+
shoulda-context (~> 1.0)
|
6
|
+
shoulda-matchers (~> 1.2)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
abstract (1.0.0)
|
12
|
+
actionmailer (3.0.12)
|
13
|
+
actionpack (= 3.0.12)
|
14
|
+
mail (~> 2.2.19)
|
15
|
+
actionpack (3.0.12)
|
16
|
+
activemodel (= 3.0.12)
|
17
|
+
activesupport (= 3.0.12)
|
18
|
+
builder (~> 2.1.2)
|
19
|
+
erubis (~> 2.6.6)
|
20
|
+
i18n (~> 0.5.0)
|
21
|
+
rack (~> 1.2.5)
|
22
|
+
rack-mount (~> 0.6.14)
|
23
|
+
rack-test (~> 0.5.7)
|
24
|
+
tzinfo (~> 0.3.23)
|
25
|
+
activemodel (3.0.12)
|
26
|
+
activesupport (= 3.0.12)
|
27
|
+
builder (~> 2.1.2)
|
28
|
+
i18n (~> 0.5.0)
|
29
|
+
activerecord (3.0.12)
|
30
|
+
activemodel (= 3.0.12)
|
31
|
+
activesupport (= 3.0.12)
|
32
|
+
arel (~> 2.0.10)
|
33
|
+
tzinfo (~> 0.3.23)
|
34
|
+
activeresource (3.0.12)
|
35
|
+
activemodel (= 3.0.12)
|
36
|
+
activesupport (= 3.0.12)
|
37
|
+
activesupport (3.0.12)
|
38
|
+
appraisal (0.4.1)
|
39
|
+
bundler
|
40
|
+
rake
|
41
|
+
arel (2.0.10)
|
42
|
+
aruba (0.4.11)
|
43
|
+
childprocess (>= 0.2.3)
|
44
|
+
cucumber (>= 1.1.1)
|
45
|
+
ffi (>= 1.0.11)
|
46
|
+
rspec (>= 2.7.0)
|
47
|
+
builder (2.1.2)
|
48
|
+
childprocess (0.3.3)
|
49
|
+
ffi (~> 1.0.6)
|
50
|
+
cucumber (1.1.9)
|
51
|
+
builder (>= 2.1.2)
|
52
|
+
diff-lcs (>= 1.1.2)
|
53
|
+
gherkin (~> 2.9.0)
|
54
|
+
json (>= 1.4.6)
|
55
|
+
term-ansicolor (>= 1.0.6)
|
56
|
+
diff-lcs (1.1.3)
|
57
|
+
erubis (2.6.6)
|
58
|
+
abstract (>= 1.0.0)
|
59
|
+
ffi (1.0.11)
|
60
|
+
gherkin (2.9.3)
|
61
|
+
json (>= 1.4.6)
|
62
|
+
i18n (0.5.0)
|
63
|
+
json (1.7.3)
|
64
|
+
mail (2.2.19)
|
65
|
+
activesupport (>= 2.3.6)
|
66
|
+
i18n (>= 0.4.0)
|
67
|
+
mime-types (~> 1.16)
|
68
|
+
treetop (~> 1.4.8)
|
69
|
+
mime-types (1.19)
|
70
|
+
polyglot (0.3.3)
|
71
|
+
rack (1.2.5)
|
72
|
+
rack-mount (0.6.14)
|
73
|
+
rack (>= 1.0.0)
|
74
|
+
rack-test (0.5.7)
|
75
|
+
rack (>= 1.0)
|
76
|
+
rails (3.0.12)
|
77
|
+
actionmailer (= 3.0.12)
|
78
|
+
actionpack (= 3.0.12)
|
79
|
+
activerecord (= 3.0.12)
|
80
|
+
activeresource (= 3.0.12)
|
81
|
+
activesupport (= 3.0.12)
|
82
|
+
bundler (~> 1.0)
|
83
|
+
railties (= 3.0.12)
|
84
|
+
railties (3.0.12)
|
85
|
+
actionpack (= 3.0.12)
|
86
|
+
activesupport (= 3.0.12)
|
87
|
+
rake (>= 0.8.7)
|
88
|
+
rdoc (~> 3.4)
|
89
|
+
thor (~> 0.14.4)
|
90
|
+
rake (0.9.2.2)
|
91
|
+
rdoc (3.12)
|
92
|
+
json (~> 1.4)
|
93
|
+
rspec (2.7.0)
|
94
|
+
rspec-core (~> 2.7.0)
|
95
|
+
rspec-expectations (~> 2.7.0)
|
96
|
+
rspec-mocks (~> 2.7.0)
|
97
|
+
rspec-core (2.7.1)
|
98
|
+
rspec-expectations (2.7.0)
|
99
|
+
diff-lcs (~> 1.1.2)
|
100
|
+
rspec-mocks (2.7.0)
|
101
|
+
rspec-rails (2.7.0)
|
102
|
+
actionpack (~> 3.0)
|
103
|
+
activesupport (~> 3.0)
|
104
|
+
railties (~> 3.0)
|
105
|
+
rspec (~> 2.7.0)
|
106
|
+
shoulda-context (1.0.0)
|
107
|
+
shoulda-matchers (1.2.0)
|
108
|
+
activesupport (>= 3.0.0)
|
109
|
+
sqlite3 (1.3.6)
|
110
|
+
term-ansicolor (1.0.7)
|
111
|
+
thor (0.14.6)
|
112
|
+
treetop (1.4.10)
|
113
|
+
polyglot
|
114
|
+
polyglot (>= 0.3.1)
|
115
|
+
tzinfo (0.3.33)
|
116
|
+
|
117
|
+
PLATFORMS
|
118
|
+
ruby
|
119
|
+
|
120
|
+
DEPENDENCIES
|
121
|
+
appraisal (~> 0.4.0)
|
122
|
+
aruba (~> 0.4.11)
|
123
|
+
cucumber (~> 1.1.0)
|
124
|
+
rails (= 3.0.12)
|
125
|
+
rspec-rails (~> 2.7.0)
|
126
|
+
shoulda!
|
127
|
+
sqlite3 (~> 1.3.2)
|
@@ -0,0 +1,149 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/jferris/Source/shoulda
|
3
|
+
specs:
|
4
|
+
shoulda (3.1.0)
|
5
|
+
shoulda-context (~> 1.0)
|
6
|
+
shoulda-matchers (~> 1.2)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionmailer (3.1.4)
|
12
|
+
actionpack (= 3.1.4)
|
13
|
+
mail (~> 2.3.0)
|
14
|
+
actionpack (3.1.4)
|
15
|
+
activemodel (= 3.1.4)
|
16
|
+
activesupport (= 3.1.4)
|
17
|
+
builder (~> 3.0.0)
|
18
|
+
erubis (~> 2.7.0)
|
19
|
+
i18n (~> 0.6)
|
20
|
+
rack (~> 1.3.6)
|
21
|
+
rack-cache (~> 1.1)
|
22
|
+
rack-mount (~> 0.8.2)
|
23
|
+
rack-test (~> 0.6.1)
|
24
|
+
sprockets (~> 2.0.3)
|
25
|
+
activemodel (3.1.4)
|
26
|
+
activesupport (= 3.1.4)
|
27
|
+
builder (~> 3.0.0)
|
28
|
+
i18n (~> 0.6)
|
29
|
+
activerecord (3.1.4)
|
30
|
+
activemodel (= 3.1.4)
|
31
|
+
activesupport (= 3.1.4)
|
32
|
+
arel (~> 2.2.3)
|
33
|
+
tzinfo (~> 0.3.29)
|
34
|
+
activeresource (3.1.4)
|
35
|
+
activemodel (= 3.1.4)
|
36
|
+
activesupport (= 3.1.4)
|
37
|
+
activesupport (3.1.4)
|
38
|
+
multi_json (~> 1.0)
|
39
|
+
appraisal (0.4.1)
|
40
|
+
bundler
|
41
|
+
rake
|
42
|
+
arel (2.2.3)
|
43
|
+
aruba (0.4.11)
|
44
|
+
childprocess (>= 0.2.3)
|
45
|
+
cucumber (>= 1.1.1)
|
46
|
+
ffi (>= 1.0.11)
|
47
|
+
rspec (>= 2.7.0)
|
48
|
+
builder (3.0.0)
|
49
|
+
childprocess (0.3.3)
|
50
|
+
ffi (~> 1.0.6)
|
51
|
+
cucumber (1.1.9)
|
52
|
+
builder (>= 2.1.2)
|
53
|
+
diff-lcs (>= 1.1.2)
|
54
|
+
gherkin (~> 2.9.0)
|
55
|
+
json (>= 1.4.6)
|
56
|
+
term-ansicolor (>= 1.0.6)
|
57
|
+
diff-lcs (1.1.3)
|
58
|
+
erubis (2.7.0)
|
59
|
+
ffi (1.0.11)
|
60
|
+
gherkin (2.9.3)
|
61
|
+
json (>= 1.4.6)
|
62
|
+
hike (1.2.1)
|
63
|
+
i18n (0.6.0)
|
64
|
+
jquery-rails (1.0.19)
|
65
|
+
railties (~> 3.0)
|
66
|
+
thor (~> 0.14)
|
67
|
+
json (1.7.3)
|
68
|
+
mail (2.3.3)
|
69
|
+
i18n (>= 0.4.0)
|
70
|
+
mime-types (~> 1.16)
|
71
|
+
treetop (~> 1.4.8)
|
72
|
+
mime-types (1.19)
|
73
|
+
multi_json (1.3.6)
|
74
|
+
polyglot (0.3.3)
|
75
|
+
rack (1.3.6)
|
76
|
+
rack-cache (1.2)
|
77
|
+
rack (>= 0.4)
|
78
|
+
rack-mount (0.8.3)
|
79
|
+
rack (>= 1.0.0)
|
80
|
+
rack-ssl (1.3.2)
|
81
|
+
rack
|
82
|
+
rack-test (0.6.1)
|
83
|
+
rack (>= 1.0)
|
84
|
+
rails (3.1.4)
|
85
|
+
actionmailer (= 3.1.4)
|
86
|
+
actionpack (= 3.1.4)
|
87
|
+
activerecord (= 3.1.4)
|
88
|
+
activeresource (= 3.1.4)
|
89
|
+
activesupport (= 3.1.4)
|
90
|
+
bundler (~> 1.0)
|
91
|
+
railties (= 3.1.4)
|
92
|
+
railties (3.1.4)
|
93
|
+
actionpack (= 3.1.4)
|
94
|
+
activesupport (= 3.1.4)
|
95
|
+
rack-ssl (~> 1.3.2)
|
96
|
+
rake (>= 0.8.7)
|
97
|
+
rdoc (~> 3.4)
|
98
|
+
thor (~> 0.14.6)
|
99
|
+
rake (0.9.2.2)
|
100
|
+
rdoc (3.12)
|
101
|
+
json (~> 1.4)
|
102
|
+
rspec (2.7.0)
|
103
|
+
rspec-core (~> 2.7.0)
|
104
|
+
rspec-expectations (~> 2.7.0)
|
105
|
+
rspec-mocks (~> 2.7.0)
|
106
|
+
rspec-core (2.7.1)
|
107
|
+
rspec-expectations (2.7.0)
|
108
|
+
diff-lcs (~> 1.1.2)
|
109
|
+
rspec-mocks (2.7.0)
|
110
|
+
rspec-rails (2.7.0)
|
111
|
+
actionpack (~> 3.0)
|
112
|
+
activesupport (~> 3.0)
|
113
|
+
railties (~> 3.0)
|
114
|
+
rspec (~> 2.7.0)
|
115
|
+
sass (3.1.20)
|
116
|
+
sass-rails (3.1.6)
|
117
|
+
actionpack (~> 3.1.0)
|
118
|
+
railties (~> 3.1.0)
|
119
|
+
sass (>= 3.1.10)
|
120
|
+
tilt (~> 1.3.2)
|
121
|
+
shoulda-context (1.0.0)
|
122
|
+
shoulda-matchers (1.2.0)
|
123
|
+
activesupport (>= 3.0.0)
|
124
|
+
sprockets (2.0.4)
|
125
|
+
hike (~> 1.2)
|
126
|
+
rack (~> 1.0)
|
127
|
+
tilt (~> 1.1, != 1.3.0)
|
128
|
+
sqlite3 (1.3.6)
|
129
|
+
term-ansicolor (1.0.7)
|
130
|
+
thor (0.14.6)
|
131
|
+
tilt (1.3.3)
|
132
|
+
treetop (1.4.10)
|
133
|
+
polyglot
|
134
|
+
polyglot (>= 0.3.1)
|
135
|
+
tzinfo (0.3.33)
|
136
|
+
|
137
|
+
PLATFORMS
|
138
|
+
ruby
|
139
|
+
|
140
|
+
DEPENDENCIES
|
141
|
+
appraisal (~> 0.4.0)
|
142
|
+
aruba (~> 0.4.11)
|
143
|
+
cucumber (~> 1.1.0)
|
144
|
+
jquery-rails
|
145
|
+
rails (= 3.1.4)
|
146
|
+
rspec-rails (~> 2.7.0)
|
147
|
+
sass-rails
|
148
|
+
shoulda!
|
149
|
+
sqlite3 (~> 1.3.2)
|
@@ -0,0 +1,146 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/jferris/Source/shoulda
|
3
|
+
specs:
|
4
|
+
shoulda (3.1.0)
|
5
|
+
shoulda-context (~> 1.0)
|
6
|
+
shoulda-matchers (~> 1.2)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionmailer (3.2.3)
|
12
|
+
actionpack (= 3.2.3)
|
13
|
+
mail (~> 2.4.4)
|
14
|
+
actionpack (3.2.3)
|
15
|
+
activemodel (= 3.2.3)
|
16
|
+
activesupport (= 3.2.3)
|
17
|
+
builder (~> 3.0.0)
|
18
|
+
erubis (~> 2.7.0)
|
19
|
+
journey (~> 1.0.1)
|
20
|
+
rack (~> 1.4.0)
|
21
|
+
rack-cache (~> 1.2)
|
22
|
+
rack-test (~> 0.6.1)
|
23
|
+
sprockets (~> 2.1.2)
|
24
|
+
activemodel (3.2.3)
|
25
|
+
activesupport (= 3.2.3)
|
26
|
+
builder (~> 3.0.0)
|
27
|
+
activerecord (3.2.3)
|
28
|
+
activemodel (= 3.2.3)
|
29
|
+
activesupport (= 3.2.3)
|
30
|
+
arel (~> 3.0.2)
|
31
|
+
tzinfo (~> 0.3.29)
|
32
|
+
activeresource (3.2.3)
|
33
|
+
activemodel (= 3.2.3)
|
34
|
+
activesupport (= 3.2.3)
|
35
|
+
activesupport (3.2.3)
|
36
|
+
i18n (~> 0.6)
|
37
|
+
multi_json (~> 1.0)
|
38
|
+
appraisal (0.4.1)
|
39
|
+
bundler
|
40
|
+
rake
|
41
|
+
arel (3.0.2)
|
42
|
+
aruba (0.4.11)
|
43
|
+
childprocess (>= 0.2.3)
|
44
|
+
cucumber (>= 1.1.1)
|
45
|
+
ffi (>= 1.0.11)
|
46
|
+
rspec (>= 2.7.0)
|
47
|
+
builder (3.0.0)
|
48
|
+
childprocess (0.3.3)
|
49
|
+
ffi (~> 1.0.6)
|
50
|
+
cucumber (1.1.9)
|
51
|
+
builder (>= 2.1.2)
|
52
|
+
diff-lcs (>= 1.1.2)
|
53
|
+
gherkin (~> 2.9.0)
|
54
|
+
json (>= 1.4.6)
|
55
|
+
term-ansicolor (>= 1.0.6)
|
56
|
+
diff-lcs (1.1.3)
|
57
|
+
erubis (2.7.0)
|
58
|
+
ffi (1.0.11)
|
59
|
+
gherkin (2.9.3)
|
60
|
+
json (>= 1.4.6)
|
61
|
+
hike (1.2.1)
|
62
|
+
i18n (0.6.0)
|
63
|
+
journey (1.0.4)
|
64
|
+
jquery-rails (2.0.2)
|
65
|
+
railties (>= 3.2.0, < 5.0)
|
66
|
+
thor (~> 0.14)
|
67
|
+
json (1.7.3)
|
68
|
+
mail (2.4.4)
|
69
|
+
i18n (>= 0.4.0)
|
70
|
+
mime-types (~> 1.16)
|
71
|
+
treetop (~> 1.4.8)
|
72
|
+
mime-types (1.19)
|
73
|
+
multi_json (1.3.6)
|
74
|
+
polyglot (0.3.3)
|
75
|
+
rack (1.4.1)
|
76
|
+
rack-cache (1.2)
|
77
|
+
rack (>= 0.4)
|
78
|
+
rack-ssl (1.3.2)
|
79
|
+
rack
|
80
|
+
rack-test (0.6.1)
|
81
|
+
rack (>= 1.0)
|
82
|
+
rails (3.2.3)
|
83
|
+
actionmailer (= 3.2.3)
|
84
|
+
actionpack (= 3.2.3)
|
85
|
+
activerecord (= 3.2.3)
|
86
|
+
activeresource (= 3.2.3)
|
87
|
+
activesupport (= 3.2.3)
|
88
|
+
bundler (~> 1.0)
|
89
|
+
railties (= 3.2.3)
|
90
|
+
railties (3.2.3)
|
91
|
+
actionpack (= 3.2.3)
|
92
|
+
activesupport (= 3.2.3)
|
93
|
+
rack-ssl (~> 1.3.2)
|
94
|
+
rake (>= 0.8.7)
|
95
|
+
rdoc (~> 3.4)
|
96
|
+
thor (~> 0.14.6)
|
97
|
+
rake (0.9.2.2)
|
98
|
+
rdoc (3.12)
|
99
|
+
json (~> 1.4)
|
100
|
+
rspec (2.7.0)
|
101
|
+
rspec-core (~> 2.7.0)
|
102
|
+
rspec-expectations (~> 2.7.0)
|
103
|
+
rspec-mocks (~> 2.7.0)
|
104
|
+
rspec-core (2.7.1)
|
105
|
+
rspec-expectations (2.7.0)
|
106
|
+
diff-lcs (~> 1.1.2)
|
107
|
+
rspec-mocks (2.7.0)
|
108
|
+
rspec-rails (2.7.0)
|
109
|
+
actionpack (~> 3.0)
|
110
|
+
activesupport (~> 3.0)
|
111
|
+
railties (~> 3.0)
|
112
|
+
rspec (~> 2.7.0)
|
113
|
+
sass (3.1.20)
|
114
|
+
sass-rails (3.2.5)
|
115
|
+
railties (~> 3.2.0)
|
116
|
+
sass (>= 3.1.10)
|
117
|
+
tilt (~> 1.3)
|
118
|
+
shoulda-context (1.0.0)
|
119
|
+
shoulda-matchers (1.2.0)
|
120
|
+
activesupport (>= 3.0.0)
|
121
|
+
sprockets (2.1.3)
|
122
|
+
hike (~> 1.2)
|
123
|
+
rack (~> 1.0)
|
124
|
+
tilt (~> 1.1, != 1.3.0)
|
125
|
+
sqlite3 (1.3.6)
|
126
|
+
term-ansicolor (1.0.7)
|
127
|
+
thor (0.14.6)
|
128
|
+
tilt (1.3.3)
|
129
|
+
treetop (1.4.10)
|
130
|
+
polyglot
|
131
|
+
polyglot (>= 0.3.1)
|
132
|
+
tzinfo (0.3.33)
|
133
|
+
|
134
|
+
PLATFORMS
|
135
|
+
ruby
|
136
|
+
|
137
|
+
DEPENDENCIES
|
138
|
+
appraisal (~> 0.4.0)
|
139
|
+
aruba (~> 0.4.11)
|
140
|
+
cucumber (~> 1.1.0)
|
141
|
+
jquery-rails
|
142
|
+
rails (= 3.2.3)
|
143
|
+
rspec-rails (~> 2.7.0)
|
144
|
+
sass-rails
|
145
|
+
shoulda!
|
146
|
+
sqlite3 (~> 1.3.2)
|
data/lib/shoulda.rb
CHANGED
data/lib/shoulda/version.rb
CHANGED
data/shoulda.gemspec
CHANGED
@@ -17,12 +17,13 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
|
20
|
-
s.add_dependency("shoulda-context", "~> 1.0
|
21
|
-
s.add_dependency("shoulda-matchers", "~> 1.
|
20
|
+
s.add_dependency("shoulda-context", "~> 1.0")
|
21
|
+
s.add_dependency("shoulda-matchers", "~> 1.2")
|
22
22
|
|
23
|
-
s.add_development_dependency(
|
23
|
+
s.add_development_dependency('appraisal', '~> 0.4.0')
|
24
|
+
s.add_development_dependency("rails", "3.0.12")
|
24
25
|
s.add_development_dependency("sqlite3", "~> 1.3.2")
|
25
|
-
s.add_development_dependency("rspec-rails", "~> 2.
|
26
|
-
s.add_development_dependency("cucumber", "~>
|
27
|
-
s.add_development_dependency("aruba", "~> 0.
|
26
|
+
s.add_development_dependency("rspec-rails", "~> 2.7.0")
|
27
|
+
s.add_development_dependency("cucumber", "~> 1.1.0")
|
28
|
+
s.add_development_dependency("aruba", "~> 0.4.11")
|
28
29
|
end
|
metadata
CHANGED
@@ -1,15 +1,10 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoulda
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 3
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 3.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.1.0
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Tammer Saleh
|
14
9
|
- Joe Ferris
|
15
10
|
- Ryan McGeary
|
@@ -18,135 +13,107 @@ authors:
|
|
18
13
|
autorequire:
|
19
14
|
bindir: bin
|
20
15
|
cert_chain: []
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
dependencies:
|
25
|
-
- !ruby/object:Gem::Dependency
|
16
|
+
date: 2012-07-15 00:00:00.000000000Z
|
17
|
+
dependencies:
|
18
|
+
- !ruby/object:Gem::Dependency
|
26
19
|
name: shoulda-context
|
27
|
-
|
28
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
requirement: &70201127542620 !ruby/object:Gem::Requirement
|
29
21
|
none: false
|
30
|
-
requirements:
|
22
|
+
requirements:
|
31
23
|
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
|
34
|
-
segments:
|
35
|
-
- 1
|
36
|
-
- 0
|
37
|
-
- 0
|
38
|
-
version: 1.0.0
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '1.0'
|
39
26
|
type: :runtime
|
40
|
-
version_requirements: *id001
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: shoulda-matchers
|
43
27
|
prerelease: false
|
44
|
-
|
28
|
+
version_requirements: *70201127542620
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: shoulda-matchers
|
31
|
+
requirement: &70201127541920 !ruby/object:Gem::Requirement
|
45
32
|
none: false
|
46
|
-
requirements:
|
33
|
+
requirements:
|
47
34
|
- - ~>
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
|
50
|
-
segments:
|
51
|
-
- 1
|
52
|
-
- 0
|
53
|
-
- 0
|
54
|
-
version: 1.0.0
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '1.2'
|
55
37
|
type: :runtime
|
56
|
-
version_requirements: *id002
|
57
|
-
- !ruby/object:Gem::Dependency
|
58
|
-
name: rails
|
59
38
|
prerelease: false
|
60
|
-
|
39
|
+
version_requirements: *70201127541920
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: appraisal
|
42
|
+
requirement: &70201127541000 !ruby/object:Gem::Requirement
|
61
43
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
66
|
-
segments:
|
67
|
-
- 3
|
68
|
-
- 0
|
69
|
-
- 3
|
70
|
-
version: 3.0.3
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.4.0
|
71
48
|
type: :development
|
72
|
-
version_requirements: *id003
|
73
|
-
- !ruby/object:Gem::Dependency
|
74
|
-
name: sqlite3
|
75
49
|
prerelease: false
|
76
|
-
|
50
|
+
version_requirements: *70201127541000
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: rails
|
53
|
+
requirement: &70201127540500 !ruby/object:Gem::Requirement
|
77
54
|
none: false
|
78
|
-
requirements:
|
55
|
+
requirements:
|
56
|
+
- - =
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: 3.0.12
|
59
|
+
type: :development
|
60
|
+
prerelease: false
|
61
|
+
version_requirements: *70201127540500
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: sqlite3
|
64
|
+
requirement: &70201127539960 !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
79
67
|
- - ~>
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
hash: 31
|
82
|
-
segments:
|
83
|
-
- 1
|
84
|
-
- 3
|
85
|
-
- 2
|
68
|
+
- !ruby/object:Gem::Version
|
86
69
|
version: 1.3.2
|
87
70
|
type: :development
|
88
|
-
version_requirements: *id004
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: rspec-rails
|
91
71
|
prerelease: false
|
92
|
-
|
72
|
+
version_requirements: *70201127539960
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: rspec-rails
|
75
|
+
requirement: &70201127539320 !ruby/object:Gem::Requirement
|
93
76
|
none: false
|
94
|
-
requirements:
|
77
|
+
requirements:
|
95
78
|
- - ~>
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
|
98
|
-
segments:
|
99
|
-
- 2
|
100
|
-
- 3
|
101
|
-
- 1
|
102
|
-
version: 2.3.1
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 2.7.0
|
103
81
|
type: :development
|
104
|
-
version_requirements: *id005
|
105
|
-
- !ruby/object:Gem::Dependency
|
106
|
-
name: cucumber
|
107
82
|
prerelease: false
|
108
|
-
|
83
|
+
version_requirements: *70201127539320
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: cucumber
|
86
|
+
requirement: &70201127538640 !ruby/object:Gem::Requirement
|
109
87
|
none: false
|
110
|
-
requirements:
|
88
|
+
requirements:
|
111
89
|
- - ~>
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
|
114
|
-
segments:
|
115
|
-
- 0
|
116
|
-
- 10
|
117
|
-
- 0
|
118
|
-
version: 0.10.0
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 1.1.0
|
119
92
|
type: :development
|
120
|
-
version_requirements: *id006
|
121
|
-
- !ruby/object:Gem::Dependency
|
122
|
-
name: aruba
|
123
93
|
prerelease: false
|
124
|
-
|
94
|
+
version_requirements: *70201127538640
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: aruba
|
97
|
+
requirement: &70201127537940 !ruby/object:Gem::Requirement
|
125
98
|
none: false
|
126
|
-
requirements:
|
99
|
+
requirements:
|
127
100
|
- - ~>
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
|
130
|
-
segments:
|
131
|
-
- 0
|
132
|
-
- 2
|
133
|
-
- 7
|
134
|
-
version: 0.2.7
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 0.4.11
|
135
103
|
type: :development
|
136
|
-
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: *70201127537940
|
137
106
|
description: Making tests easy on the fingers and eyes
|
138
107
|
email: support@thoughtbot.com
|
139
108
|
executables: []
|
140
|
-
|
141
109
|
extensions: []
|
142
|
-
|
143
110
|
extra_rdoc_files: []
|
144
|
-
|
145
|
-
files:
|
111
|
+
files:
|
146
112
|
- .autotest
|
147
113
|
- .gitignore
|
148
114
|
- .travis.yml
|
149
|
-
-
|
115
|
+
- Appraisals
|
116
|
+
- CONTRIBUTING.md
|
150
117
|
- Gemfile
|
151
118
|
- MIT-LICENSE
|
152
119
|
- README.md
|
@@ -154,44 +121,46 @@ files:
|
|
154
121
|
- features/rails_integration.feature
|
155
122
|
- features/step_definitions/rails_steps.rb
|
156
123
|
- features/support/env.rb
|
124
|
+
- gemfiles/3.0.gemfile
|
125
|
+
- gemfiles/3.0.gemfile.lock
|
126
|
+
- gemfiles/3.1.gemfile
|
127
|
+
- gemfiles/3.1.gemfile.lock
|
128
|
+
- gemfiles/3.2.gemfile
|
129
|
+
- gemfiles/3.2.gemfile.lock
|
157
130
|
- lib/shoulda.rb
|
158
131
|
- lib/shoulda/version.rb
|
159
132
|
- shoulda.gemspec
|
160
|
-
has_rdoc: true
|
161
133
|
homepage: https://github.com/thoughtbot/shoulda
|
162
134
|
licenses: []
|
163
|
-
|
164
135
|
post_install_message:
|
165
136
|
rdoc_options: []
|
166
|
-
|
167
|
-
require_paths:
|
137
|
+
require_paths:
|
168
138
|
- lib
|
169
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
170
140
|
none: false
|
171
|
-
requirements:
|
172
|
-
- -
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
|
175
|
-
segments:
|
141
|
+
requirements:
|
142
|
+
- - ! '>='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
segments:
|
176
146
|
- 0
|
177
|
-
|
178
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
|
+
hash: -3955884224471905777
|
148
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
149
|
none: false
|
180
|
-
requirements:
|
181
|
-
- -
|
182
|
-
- !ruby/object:Gem::Version
|
183
|
-
|
184
|
-
segments:
|
150
|
+
requirements:
|
151
|
+
- - ! '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
segments:
|
185
155
|
- 0
|
186
|
-
|
156
|
+
hash: -3955884224471905777
|
187
157
|
requirements: []
|
188
|
-
|
189
158
|
rubyforge_project:
|
190
|
-
rubygems_version: 1.
|
159
|
+
rubygems_version: 1.8.17
|
191
160
|
signing_key:
|
192
161
|
specification_version: 3
|
193
162
|
summary: Making tests easy on the fingers and eyes
|
194
|
-
test_files:
|
163
|
+
test_files:
|
195
164
|
- features/rails_integration.feature
|
196
165
|
- features/step_definitions/rails_steps.rb
|
197
166
|
- features/support/env.rb
|
@@ -1,10 +0,0 @@
|
|
1
|
-
We're using GitHub[http://github.com/thoughtbot/shoulda/tree/master], and we've been getting any combination of github pull requests, tickets, patches, emails, etc. We need to normalize this workflow to make sure we don't miss any fixes.
|
2
|
-
|
3
|
-
* Make sure you're accessing the source from the {official repository}[http://github.com/thoughtbot/shoulda/tree/master].
|
4
|
-
* We prefer git branches over patches, but we can take either.
|
5
|
-
* If you're using git, please make a branch for each separate contribution. We can cherry pick your commits, but pulling from a branch is easier.
|
6
|
-
* If you're submitting patches, please cut each fix or feature into a separate patch.
|
7
|
-
* There should be an issue[http://github.com/thoughtbot/shoulda/issues] for any submission. If you've found a bug and want to fix it, open a new ticket at the same time.
|
8
|
-
* Please <b>don't send pull requests</b> Just update the issue with the url for your fix (or attach the patch) when it's ready. The github pull requests pretty much get dropped on the floor until someone with commit rights notices them in the mailbox.
|
9
|
-
* Contributions without tests won't be accepted. The file <tt>/test/README</tt> explains the testing system pretty thoroughly.
|
10
|
-
|