Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Switch to minitest-capybara (fixes #2)

Defer to minitest-capybara for all the integration to Minitest.
This means we now depend on minitest-matchers as well.
  • Loading branch information...
commit bb507424e6bb8458fcbee6690daa1e349b5b083a 1 parent b1078ee
@blowmage authored
View
4 Rakefile
@@ -18,8 +18,8 @@ Hoe.spec 'minitest-rails-capybara' do
self.readme_file = "README.rdoc"
self.testlib = :minitest
- extra_deps << ['minitest-rails']
- extra_deps << ['capybara']
+ dependency 'minitest-rails', '~> 0.1'
+ dependency 'minitest-capybara', '~> 0.1'
end
# vim: syntax=ruby
View
5 lib/minitest/rails/capybara.rb
@@ -1,7 +1,10 @@
require "minitest/rails"
+# Load minitest-matchers and fix Capybara::RSpecMatchers
+require "minitest-capybara"
require "capybara/rails"
class MiniTest::Rails::ActionDispatch::IntegrationTest
include Rails.application.routes.url_helpers
+ include Capybara::RSpecMatchers
include Capybara::DSL
-end
+end
View
14 minitest-rails-capybara.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = "minitest-rails-capybara"
- s.version = "0.0.2.20120802073915"
+ s.version = "0.0.2.20120802090439"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Mike Moore"]
@@ -23,19 +23,19 @@ Gem::Specification.new do |s|
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<minitest-rails>, [">= 0"])
- s.add_runtime_dependency(%q<capybara>, [">= 0"])
+ s.add_runtime_dependency(%q<minitest-rails>, ["~> 0.1"])
+ s.add_runtime_dependency(%q<minitest-capybara>, ["~> 0.1"])
s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
s.add_development_dependency(%q<hoe>, ["~> 3.0"])
else
- s.add_dependency(%q<minitest-rails>, [">= 0"])
- s.add_dependency(%q<capybara>, [">= 0"])
+ s.add_dependency(%q<minitest-rails>, ["~> 0.1"])
+ s.add_dependency(%q<minitest-capybara>, ["~> 0.1"])
s.add_dependency(%q<rdoc>, ["~> 3.10"])
s.add_dependency(%q<hoe>, ["~> 3.0"])
end
else
- s.add_dependency(%q<minitest-rails>, [">= 0"])
- s.add_dependency(%q<capybara>, [">= 0"])
+ s.add_dependency(%q<minitest-rails>, ["~> 0.1"])
+ s.add_dependency(%q<minitest-capybara>, ["~> 0.1"])
s.add_dependency(%q<rdoc>, ["~> 3.10"])
s.add_dependency(%q<hoe>, ["~> 3.0"])
end
Please sign in to comment.
Something went wrong with that request. Please try again.