Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: rspec/rspec-expectations
...
head fork: rspec/rspec-expectations
Checking mergeability… Don't worry, you can still create the pull request.
  • 4 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
View
1  .gitignore
@@ -13,3 +13,4 @@ Gemfile.lock
bin
.rbx
Gemfile-custom
+bundle
View
2  .travis.yml
@@ -1,4 +1,4 @@
-script: "bin/rake --trace 2>&1"
+script: "script/test_all && bin/rake cucumber --trace 2>&1"
bundler_args: "--binstubs"
rvm:
- 1.8.7
View
9 script/find_path_to_rspec_exe
@@ -0,0 +1,9 @@
+#!/usr/bin/env ruby
+
+require File.expand_path('../../bundle/bundler/setup', __FILE__)
+# git-sourced gems installed by bundler will be at a path like
+# "{gem_name}-{git_sha}"...
+rspec_core_path = $LOAD_PATH.grep(/rspec-core[^\/]*\/lib$/).first
+
+puts File.expand_path('../exe/rspec', rspec_core_path)
+
View
28 script/test_all
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+function print_and_run {
+ echo $1
+ ($1)
+}
+
+set -e
+
+echo "Bundling Standalone so we can run the specs w/o bundler loaded"
+
+bundle install --standalone
+path_to_rspec_exe=`script/find_path_to_rspec_exe`
+
+command_prefix="ruby -w -r./bundle/bundler/setup.rb -S $path_to_rspec_exe"
+
+echo "Running all..."
+
+print_and_run "$command_prefix spec --format progress --profile"
+
+echo
+echo "--------------------------------------------------------------------"
+echo
+
+for file in `find spec -iname '*_spec.rb'`; do
+ print_and_run "$command_prefix $file --format progress"
+done
+

No commit comments for this range

Something went wrong with that request. Please try again.