1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Loosen Bourne dependency to ~> 1.3

> Use a pessimistic version in the Gemfile for gems that follow semantic
> versioning, such as rspec, factory_girl, and capybara.

https://github.com/thoughtbot/guides/tree/master/best-practices

* Upgrade dependencies so specs run on new Bourne.
* Use semantic versions in step_definitions gems.
* Rely on ActiveSupport::Dependencies.clear for reloading constants.
  http://rkh.im/code-reloading
This commit is contained in:
Dan Croak 2013-03-18 00:19:06 -07:00
parent 9ca8ab9c9d
commit b79360441d
12 changed files with 240 additions and 220 deletions

View file

@ -3,7 +3,7 @@ PATH
specs:
shoulda-matchers (1.5.0)
activesupport (>= 3.0.0)
bourne (~> 1.2.0)
bourne (~> 1.3)
GEM
remote: https://rubygems.org/
@ -43,8 +43,8 @@ GEM
childprocess (~> 0.3.6)
cucumber (>= 1.1.1)
rspec-expectations (>= 2.7.0)
bourne (1.2.1)
mocha (= 0.12.7)
bourne (1.4.0)
mocha (~> 0.13.2)
builder (3.0.4)
childprocess (0.3.6)
ffi (~> 1.0, >= 1.0.6)
@ -53,29 +53,29 @@ GEM
diff-lcs (>= 1.1.3)
gherkin (~> 2.11.0)
json (>= 1.4.6)
diff-lcs (1.1.3)
diff-lcs (1.2.1)
erubis (2.7.0)
ffi (1.2.0)
gherkin (2.11.5)
json (>= 1.4.6)
hike (1.2.1)
i18n (0.6.1)
i18n (0.6.4)
journey (1.0.4)
json (1.7.6)
json (1.7.7)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
metaclass (0.0.1)
mime-types (1.19)
mocha (0.12.7)
mocha (0.13.3)
metaclass (~> 0.0.1)
multi_json (1.5.0)
multi_json (1.7.1)
polyglot (0.3.3)
rack (1.4.4)
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.2)
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
@ -95,21 +95,23 @@ GEM
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.0.3)
rdoc (3.12)
rdoc (3.12.2)
json (~> 1.4)
rspec (2.8.0)
rspec-core (~> 2.8.0)
rspec-expectations (~> 2.8.0)
rspec-mocks (~> 2.8.0)
rspec-core (2.8.0)
rspec-expectations (2.8.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.8.0)
rspec-rails (2.8.1)
rspec (2.13.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.13.0)
rspec-rails (2.13.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec (~> 2.8.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
shoulda-context (1.0.1)
sprockets (2.2.2)
hike (~> 1.2)
@ -121,8 +123,8 @@ GEM
actionpack (~> 3.1)
activemodel (~> 3.1)
railties (~> 3.1)
thor (0.16.0)
tilt (1.3.3)
thor (0.17.0)
tilt (1.3.6)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
@ -142,7 +144,8 @@ DEPENDENCIES
jruby-openssl
rails (~> 3.0)
rake (>= 0.9.2)
rspec-rails (~> 2.8.1)
rspec (~> 2.13)
rspec-rails (~> 2.13)
shoulda-context (~> 1.0.0)
shoulda-matchers!
sqlite3

View file

@ -25,8 +25,9 @@ When 'I generate a new rails application' do
And I set the "BUNDLE_GEMFILE" environment variable to "Gemfile"
And I successfully run `bundle install --local`
}
if RUBY_VERSION >= '1.9.3'
append_to_gemfile %(gem 'rake', '~> 0.9.3.beta.1')
append_to_gemfile %(gem 'rake', '~> 0.9')
step %(I successfully run `bundle update rake`)
end
end
@ -52,21 +53,21 @@ When 'I run the rspec generator' do
end
When 'I configure the application to use rspec-rails' do
append_to_gemfile %q(gem 'rspec-rails', '~> 2.8.1')
append_to_gemfile %q(gem 'rspec-rails', '~> 2.13')
steps %{And I run `bundle install --local`}
end
When 'I configure the application to use rspec-rails in test and development' do
append_to_gemfile <<-GEMFILE
group :test, :development do
gem 'rspec-rails', '~> 2.8.1'
gem 'rspec-rails', '~> 2.13'
end
GEMFILE
steps %{And I run `bundle install --local`}
end
When 'I configure the application to use shoulda-context' do
append_to_gemfile %q(gem 'shoulda-context', '~> 1.0.0')
append_to_gemfile %q(gem 'shoulda-context', '~> 1.0')
steps %{And I run `bundle install --local`}
end

View file

@ -1,6 +1,6 @@
# This file was generated by Appraisal
source "http://rubygems.org"
source "https://rubygems.org"
gem "shoulda-context", "~> 1.0.0"
gem "sqlite3", :platform=>:ruby

View file

@ -1,20 +1,20 @@
PATH
remote: /Users/draper/Dropbox/Development/shoulda-matchers
remote: /Users/croaky/dev/shoulda-matchers
specs:
shoulda-matchers (1.5.0)
activesupport (>= 3.0.0)
bourne (~> 1.2.0)
bourne (~> 1.3)
GEM
remote: http://rubygems.org/
remote: https://rubygems.org/
specs:
abstract (1.0.0)
actionmailer (3.0.17)
actionpack (= 3.0.17)
actionmailer (3.0.20)
actionpack (= 3.0.20)
mail (~> 2.2.19)
actionpack (3.0.17)
activemodel (= 3.0.17)
activesupport (= 3.0.17)
actionpack (3.0.20)
activemodel (= 3.0.20)
activesupport (= 3.0.20)
builder (~> 2.1.2)
erubis (~> 2.6.6)
i18n (~> 0.5.0)
@ -22,19 +22,19 @@ GEM
rack-mount (~> 0.6.14)
rack-test (~> 0.5.7)
tzinfo (~> 0.3.23)
activemodel (3.0.17)
activesupport (= 3.0.17)
activemodel (3.0.20)
activesupport (= 3.0.20)
builder (~> 2.1.2)
i18n (~> 0.5.0)
activerecord (3.0.17)
activemodel (= 3.0.17)
activesupport (= 3.0.17)
activerecord (3.0.20)
activemodel (= 3.0.20)
activesupport (= 3.0.20)
arel (~> 2.0.10)
tzinfo (~> 0.3.23)
activeresource (3.0.17)
activemodel (= 3.0.17)
activesupport (= 3.0.17)
activesupport (3.0.17)
activeresource (3.0.20)
activemodel (= 3.0.20)
activesupport (= 3.0.20)
activesupport (3.0.20)
appraisal (0.5.1)
bundler
rake
@ -43,72 +43,75 @@ GEM
childprocess (~> 0.3.6)
cucumber (>= 1.1.1)
rspec-expectations (>= 2.7.0)
bourne (1.2.1)
mocha (= 0.12.7)
bourne (1.4.0)
mocha (~> 0.13.2)
builder (2.1.2)
childprocess (0.3.6)
ffi (~> 1.0, >= 1.0.6)
cucumber (1.2.1)
childprocess (0.3.9)
ffi (~> 1.0, >= 1.0.11)
cucumber (1.2.3)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.11.0)
json (>= 1.4.6)
diff-lcs (1.1.3)
gherkin (~> 2.11.6)
multi_json (~> 1.3)
diff-lcs (1.2.1)
erubis (2.6.6)
abstract (>= 1.0.0)
ffi (1.3.1)
gherkin (2.11.5)
json (>= 1.4.6)
ffi (1.4.0)
gherkin (2.11.6)
json (>= 1.7.6)
i18n (0.5.0)
json (1.7.6)
json (1.7.7)
mail (2.2.19)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
metaclass (0.0.1)
mime-types (1.19)
mocha (0.12.7)
mime-types (1.21)
mocha (0.13.3)
metaclass (~> 0.0.1)
multi_json (1.7.1)
polyglot (0.3.3)
rack (1.2.7)
rack (1.2.8)
rack-mount (0.6.14)
rack (>= 1.0.0)
rack-test (0.5.7)
rack (>= 1.0)
rails (3.0.17)
actionmailer (= 3.0.17)
actionpack (= 3.0.17)
activerecord (= 3.0.17)
activeresource (= 3.0.17)
activesupport (= 3.0.17)
rails (3.0.20)
actionmailer (= 3.0.20)
actionpack (= 3.0.20)
activerecord (= 3.0.20)
activeresource (= 3.0.20)
activesupport (= 3.0.20)
bundler (~> 1.0)
railties (= 3.0.17)
railties (3.0.17)
actionpack (= 3.0.17)
activesupport (= 3.0.17)
railties (= 3.0.20)
railties (3.0.20)
actionpack (= 3.0.20)
activesupport (= 3.0.20)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.4)
rake (10.0.3)
rdoc (3.12)
rdoc (3.12.2)
json (~> 1.4)
rspec (2.8.0)
rspec-core (~> 2.8.0)
rspec-expectations (~> 2.8.0)
rspec-mocks (~> 2.8.0)
rspec-core (2.8.0)
rspec-expectations (2.8.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.8.0)
rspec-rails (2.8.1)
rspec (2.13.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.13.0)
rspec-rails (2.13.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec (~> 2.8.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
shoulda-context (1.0.2)
sqlite3 (1.3.7)
strong_parameters (0.1.6)
strong_parameters (0.2.0)
actionpack (~> 3.0)
activemodel (~> 3.0)
railties (~> 3.0)
@ -116,7 +119,7 @@ GEM
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.35)
tzinfo (0.3.37)
PLATFORMS
ruby
@ -132,7 +135,8 @@ DEPENDENCIES
jruby-openssl
rails (~> 3.0.17)
rake (>= 0.9.2)
rspec-rails (~> 2.8.1)
rspec (~> 2.13)
rspec-rails (~> 2.13)
shoulda-context (~> 1.0.0)
shoulda-matchers!
sqlite3

View file

@ -1,6 +1,6 @@
# This file was generated by Appraisal
source "http://rubygems.org"
source "https://rubygems.org"
gem "shoulda-context", "~> 1.0.0"
gem "sqlite3", :platform=>:ruby

View file

@ -1,19 +1,19 @@
PATH
remote: /Users/draper/Dropbox/Development/shoulda-matchers
remote: /Users/croaky/dev/shoulda-matchers
specs:
shoulda-matchers (1.5.0)
activesupport (>= 3.0.0)
bourne (~> 1.2.0)
bourne (~> 1.3)
GEM
remote: http://rubygems.org/
remote: https://rubygems.org/
specs:
actionmailer (3.1.8)
actionpack (= 3.1.8)
actionmailer (3.1.11)
actionpack (= 3.1.11)
mail (~> 2.3.3)
actionpack (3.1.8)
activemodel (= 3.1.8)
activesupport (= 3.1.8)
actionpack (3.1.11)
activemodel (= 3.1.11)
activesupport (= 3.1.11)
builder (~> 3.0.0)
erubis (~> 2.7.0)
i18n (~> 0.6)
@ -22,20 +22,20 @@ GEM
rack-mount (~> 0.8.2)
rack-test (~> 0.6.1)
sprockets (~> 2.0.4)
activemodel (3.1.8)
activesupport (= 3.1.8)
activemodel (3.1.11)
activesupport (= 3.1.11)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.8)
activemodel (= 3.1.8)
activesupport (= 3.1.8)
activerecord (3.1.11)
activemodel (= 3.1.11)
activesupport (= 3.1.11)
arel (~> 2.2.3)
tzinfo (~> 0.3.29)
activeresource (3.1.8)
activemodel (= 3.1.8)
activesupport (= 3.1.8)
activesupport (3.1.8)
multi_json (>= 1.0, < 1.3)
activeresource (3.1.11)
activemodel (= 3.1.11)
activesupport (= 3.1.11)
activesupport (3.1.11)
multi_json (~> 1.0)
appraisal (0.5.1)
bundler
rake
@ -44,78 +44,80 @@ GEM
childprocess (~> 0.3.6)
cucumber (>= 1.1.1)
rspec-expectations (>= 2.7.0)
bourne (1.2.1)
mocha (= 0.12.7)
bourne (1.4.0)
mocha (~> 0.13.2)
builder (3.0.4)
childprocess (0.3.6)
ffi (~> 1.0, >= 1.0.6)
cucumber (1.2.1)
childprocess (0.3.9)
ffi (~> 1.0, >= 1.0.11)
cucumber (1.2.3)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.11.0)
json (>= 1.4.6)
diff-lcs (1.1.3)
gherkin (~> 2.11.6)
multi_json (~> 1.3)
diff-lcs (1.2.1)
erubis (2.7.0)
ffi (1.3.1)
gherkin (2.11.5)
json (>= 1.4.6)
ffi (1.4.0)
gherkin (2.11.6)
json (>= 1.7.6)
hike (1.2.1)
i18n (0.6.1)
jquery-rails (2.2.0)
i18n (0.6.4)
jquery-rails (2.2.1)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.7.6)
json (1.7.7)
mail (2.3.3)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
metaclass (0.0.1)
mime-types (1.19)
mocha (0.12.7)
mime-types (1.21)
mocha (0.13.3)
metaclass (~> 0.0.1)
multi_json (1.2.0)
multi_json (1.7.1)
polyglot (0.3.3)
rack (1.3.9)
rack (1.3.10)
rack-cache (1.2)
rack (>= 0.4)
rack-mount (0.8.3)
rack (>= 1.0.0)
rack-ssl (1.3.2)
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (3.1.8)
actionmailer (= 3.1.8)
actionpack (= 3.1.8)
activerecord (= 3.1.8)
activeresource (= 3.1.8)
activesupport (= 3.1.8)
rails (3.1.11)
actionmailer (= 3.1.11)
actionpack (= 3.1.11)
activerecord (= 3.1.11)
activeresource (= 3.1.11)
activesupport (= 3.1.11)
bundler (~> 1.0)
railties (= 3.1.8)
railties (3.1.8)
actionpack (= 3.1.8)
activesupport (= 3.1.8)
railties (= 3.1.11)
railties (3.1.11)
actionpack (= 3.1.11)
activesupport (= 3.1.11)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (10.0.3)
rdoc (3.12)
rdoc (3.12.2)
json (~> 1.4)
rspec (2.8.0)
rspec-core (~> 2.8.0)
rspec-expectations (~> 2.8.0)
rspec-mocks (~> 2.8.0)
rspec-core (2.8.0)
rspec-expectations (2.8.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.8.0)
rspec-rails (2.8.1)
rspec (2.13.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.13.0)
rspec-rails (2.13.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec (~> 2.8.0)
sass (3.2.5)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
sass (3.2.7)
sass-rails (3.1.6)
actionpack (~> 3.1.0)
railties (~> 3.1.0)
@ -127,16 +129,16 @@ GEM
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.7)
strong_parameters (0.1.6)
strong_parameters (0.2.0)
actionpack (~> 3.0)
activemodel (~> 3.0)
railties (~> 3.0)
thor (0.14.6)
tilt (1.3.3)
tilt (1.3.6)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.35)
tzinfo (0.3.37)
PLATFORMS
ruby
@ -153,7 +155,8 @@ DEPENDENCIES
jruby-openssl
rails (~> 3.1.8)
rake (>= 0.9.2)
rspec-rails (~> 2.8.1)
rspec (~> 2.13)
rspec-rails (~> 2.13)
sass-rails
shoulda-context (~> 1.0.0)
shoulda-matchers!

View file

@ -1,6 +1,6 @@
# This file was generated by Appraisal
source "http://rubygems.org"
source "https://rubygems.org"
gem "shoulda-context", "~> 1.0.0"
gem "sqlite3", :platform=>:ruby

View file

@ -1,39 +1,39 @@
PATH
remote: /Users/draper/Dropbox/Development/shoulda-matchers
remote: /Users/croaky/dev/shoulda-matchers
specs:
shoulda-matchers (1.5.0)
activesupport (>= 3.0.0)
bourne (~> 1.2.0)
bourne (~> 1.3)
GEM
remote: http://rubygems.org/
remote: https://rubygems.org/
specs:
actionmailer (3.2.9)
actionpack (= 3.2.9)
mail (~> 2.4.4)
actionpack (3.2.9)
activemodel (= 3.2.9)
activesupport (= 3.2.9)
actionmailer (3.2.13)
actionpack (= 3.2.13)
mail (~> 2.5.3)
actionpack (3.2.13)
activemodel (= 3.2.13)
activesupport (= 3.2.13)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.4)
rack (~> 1.4.0)
rack (~> 1.4.5)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.2.1)
activemodel (3.2.9)
activesupport (= 3.2.9)
activemodel (3.2.13)
activesupport (= 3.2.13)
builder (~> 3.0.0)
activerecord (3.2.9)
activemodel (= 3.2.9)
activesupport (= 3.2.9)
activerecord (3.2.13)
activemodel (= 3.2.13)
activesupport (= 3.2.13)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.9)
activemodel (= 3.2.9)
activesupport (= 3.2.9)
activesupport (3.2.9)
i18n (~> 0.6)
activeresource (3.2.13)
activemodel (= 3.2.13)
activesupport (= 3.2.13)
activesupport (3.2.13)
i18n (= 0.6.1)
multi_json (~> 1.0)
appraisal (0.5.1)
bundler
@ -43,77 +43,79 @@ GEM
childprocess (~> 0.3.6)
cucumber (>= 1.1.1)
rspec-expectations (>= 2.7.0)
bourne (1.2.1)
mocha (= 0.12.7)
bourne (1.4.0)
mocha (~> 0.13.2)
builder (3.0.4)
childprocess (0.3.6)
ffi (~> 1.0, >= 1.0.6)
cucumber (1.2.1)
childprocess (0.3.9)
ffi (~> 1.0, >= 1.0.11)
cucumber (1.2.3)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.11.0)
json (>= 1.4.6)
diff-lcs (1.1.3)
gherkin (~> 2.11.6)
multi_json (~> 1.3)
diff-lcs (1.2.1)
erubis (2.7.0)
ffi (1.3.1)
gherkin (2.11.5)
json (>= 1.4.6)
ffi (1.4.0)
gherkin (2.11.6)
json (>= 1.7.6)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (2.2.0)
jquery-rails (2.2.1)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.7.6)
mail (2.4.4)
json (1.7.7)
mail (2.5.3)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
metaclass (0.0.1)
mime-types (1.19)
mocha (0.12.7)
mime-types (1.21)
mocha (0.13.3)
metaclass (~> 0.0.1)
multi_json (1.5.0)
multi_json (1.7.1)
polyglot (0.3.3)
rack (1.4.4)
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.2)
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (3.2.9)
actionmailer (= 3.2.9)
actionpack (= 3.2.9)
activerecord (= 3.2.9)
activeresource (= 3.2.9)
activesupport (= 3.2.9)
rails (3.2.13)
actionmailer (= 3.2.13)
actionpack (= 3.2.13)
activerecord (= 3.2.13)
activeresource (= 3.2.13)
activesupport (= 3.2.13)
bundler (~> 1.0)
railties (= 3.2.9)
railties (3.2.9)
actionpack (= 3.2.9)
activesupport (= 3.2.9)
railties (= 3.2.13)
railties (3.2.13)
actionpack (= 3.2.13)
activesupport (= 3.2.13)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.0.3)
rdoc (3.12)
rdoc (3.12.2)
json (~> 1.4)
rspec (2.8.0)
rspec-core (~> 2.8.0)
rspec-expectations (~> 2.8.0)
rspec-mocks (~> 2.8.0)
rspec-core (2.8.0)
rspec-expectations (2.8.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.8.0)
rspec-rails (2.8.1)
rspec (2.13.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.13.0)
rspec-rails (2.13.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec (~> 2.8.0)
sass (3.2.5)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
sass (3.2.7)
sass-rails (3.2.6)
railties (~> 3.2.0)
sass (>= 3.1.10)
@ -125,16 +127,16 @@ GEM
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.7)
strong_parameters (0.1.6)
strong_parameters (0.2.0)
actionpack (~> 3.0)
activemodel (~> 3.0)
railties (~> 3.0)
thor (0.16.0)
tilt (1.3.3)
thor (0.17.0)
tilt (1.3.6)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.35)
tzinfo (0.3.37)
PLATFORMS
ruby
@ -151,7 +153,8 @@ DEPENDENCIES
jruby-openssl
rails (~> 3.2.8)
rake (>= 0.9.2)
rspec-rails (~> 2.8.1)
rspec (~> 2.13)
rspec-rails (~> 2.13)
sass-rails
shoulda-context (~> 1.0.0)
shoulda-matchers!

View file

@ -1,5 +1,5 @@
# :enddoc:
require 'rspec'
require 'rspec/rails'
RSpec.configure do |config|
require 'shoulda/matchers/independent'

View file

@ -19,7 +19,7 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.add_dependency('activesupport', '>= 3.0.0')
s.add_dependency('bourne', '~> 1.2.0')
s.add_dependency('bourne', '~> 1.3')
s.add_development_dependency('appraisal', '~> 0.4')
s.add_development_dependency('aruba')
@ -27,6 +27,7 @@ Gem::Specification.new do |s|
s.add_development_dependency('cucumber', '~> 1.1')
s.add_development_dependency('rails', '~> 3.0')
s.add_development_dependency('rake', '>= 0.9.2')
s.add_development_dependency('rspec-rails', '~> 2.8.1')
s.add_development_dependency('rspec', '~> 2.13')
s.add_development_dependency('rspec-rails', '~> 2.13')
s.add_development_dependency('strong_parameters')
end

View file

@ -178,10 +178,12 @@ describe Shoulda::Matchers::ActiveRecord::AssociationMatcher do
it 'rejects an association that has the wrong :through option' do
define_model :child
define_model :conception, :child_id => :integer,
:parent_id => :integer do
belongs_to :child
end
end
define_model :parent do
has_many :conceptions
has_many :relationships
@ -264,6 +266,7 @@ describe Shoulda::Matchers::ActiveRecord::AssociationMatcher do
define_model :child, :ancestor_id => :integer do
belongs_to :ancestor, :inverse_of => :children, :class_name => :Parent
end
define_model :parent do
has_many :children, :inverse_of => :ancestor
end
@ -275,6 +278,7 @@ describe Shoulda::Matchers::ActiveRecord::AssociationMatcher do
define_model :child, :mother_id => :integer do
belongs_to :mother, :inverse_of => :children, :class_name => :Parent
end
define_model :parent do
has_many :children, :inverse_of => :ancestor
end

View file

@ -7,6 +7,7 @@ module ModelBuilder
after do
drop_created_tables
ActiveSupport::Dependencies.clear
end
end
end