Browse files

Added bundler to easily create dev environment

  • Loading branch information...
1 parent ca703d2 commit c18c858d72ecff4c3677ccf80bea329387336646 @jnicklas jnicklas committed Jul 19, 2010
Showing with 85 additions and 8 deletions.
  1. +1 −0 .gitignore
  2. +16 −0 Gemfile
  3. +43 −0 Gemfile.lock
  4. +19 −0 README.rdoc
  5. +1 −5 capybara.gemspec
  6. +5 −3 spec/spec_helper.rb
View
1 .gitignore
@@ -8,3 +8,4 @@ spec.opts
capybara-*.html
.yardoc
doc
+.bundle
View
16 Gemfile
@@ -0,0 +1,16 @@
+source :rubygems
+
+gem "nokogiri"
+gem "mime-types"
+gem "celerity", :require => false
+gem "culerity", :require => false
+gem "selenium-webdriver", :require => false
+gem "rack"
+gem "rack-test"
+
+group :development do
+ gem "sinatra", :require => 'sinatra/base'
+ gem "rspec", :require => ['spec', 'spec/autorun']
+ gem "launchy"
+ gem "yard", :require => false
+end
View
43 Gemfile.lock
@@ -0,0 +1,43 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ celerity (0.7.9)
+ configuration (1.1.0)
+ culerity (0.2.10)
+ ffi (0.6.3)
+ rake (>= 0.8.7)
+ json_pure (1.4.3)
+ launchy (0.3.7)
+ configuration (>= 0.0.5)
+ rake (>= 0.8.1)
+ mime-types (1.16)
+ nokogiri (1.4.2)
+ rack (1.2.1)
+ rack-test (0.5.4)
+ rack (>= 1.0)
+ rake (0.8.7)
+ rspec (1.3.0)
+ rubyzip (0.9.4)
+ selenium-webdriver (0.0.26)
+ ffi (>= 0.6.1)
+ json_pure
+ rubyzip
+ sinatra (1.0)
+ rack (>= 1.0)
+ yard (0.5.8)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ celerity
+ culerity
+ launchy
+ mime-types
+ nokogiri
+ rack
+ rack-test
+ rspec
+ selenium-webdriver
+ sinatra
+ yard
View
19 README.rdoc
@@ -29,6 +29,7 @@ On OSX you may have to install libffi, you can install it via MacPorts with:
* Source hosted at {GitHub}[http://github.com/jnicklas/capybara].
* Please direct questions, discussions at the {mailing list}[http://groups.google.com/group/ruby-capybara].
* Report issues on {GitHub Issues}[http://github.com/jnicklas/capybara/issues]
+* Instructions for running the specs are at the bottom of this file!
Pull requests are very welcome! Make sure your patches are well tested, Capybara is
a testing tool after all. Please create a topic branch for every separate change
@@ -435,3 +436,21 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+== Setting up a development environment
+
+If you want to run the Capybara specs, please follow the following steps:
+
+Make Capybara use a separate gemset (optional):
+
+ rvm --create use default@capybara
+ cd .
+
+Install bundler and run it:
+
+ gem install bundler --pre
+ bundle install
+
+Run the specs:
+
+ bundle exec rake spec
View
6 capybara.gemspec
@@ -25,12 +25,8 @@ Gem::Specification.new do |s|
s.add_runtime_dependency("nokogiri", [">= 1.3.3"])
s.add_runtime_dependency("mime-types", [">= 1.16"])
s.add_runtime_dependency("culerity", [">= 0.2.4"])
+ s.add_runtime_dependency("celerity", [">= 0.7.9"])
s.add_runtime_dependency("selenium-webdriver", [">= 0.0.3"])
s.add_runtime_dependency("rack", [">= 1.0.0"])
s.add_runtime_dependency("rack-test", [">= 0.5.4"])
-
- s.add_development_dependency("sinatra", [">= 0.9.4"])
- s.add_development_dependency("rspec", [">= 1.2.9"])
- s.add_development_dependency("launchy", [">= 0.3.5"])
- s.add_development_dependency("yard", [">= 0.5.8"])
end
View
8 spec/spec_helper.rb
@@ -1,9 +1,11 @@
$:.unshift(File.expand_path('../lib', File.dirname(__FILE__)))
$:.unshift(File.dirname(__FILE__))
-require 'rubygems'
-require 'spec'
-require 'spec/autorun'
+require "rubygems"
+require "bundler"
+Bundler.setup
+Bundler.require(:default, :development)
+
require 'capybara'
require 'capybara/spec/driver'
require 'capybara/spec/session'

0 comments on commit c18c858

Please sign in to comment.