Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 18 additions and 5 deletions.
  1. +8 −2 History.markdown
  2. +1 −1  lib/specjour.rb
  3. +9 −2 lib/specjour/loader.rb
10 History.markdown
View
@@ -1,7 +1,13 @@
History
=======
-0.5.3 / 2012-04-12
+0.5.4 / 2012-05-29
+---------------------------
+* [fixed] Not running specs without 'spec/' argument
+
+[Full Changelog](https://github.com/sandro/specjour/compare/v0.5.3...v0.5.4)
+
+0.5.3 / 2012-04-12 - yanked
---------------------------
* [fixed] Writing to a nil socket; timeout too small (josephlord)
* [fixed] Eagerly loading Rspec (jgdavey)
@@ -33,7 +39,7 @@ History
* [removed] RSpec < 2.8 compatibility
* [added] Memory utilizing forks. No longer forking and execing means workers
start running tests faster.
-* [added] Configuration.after_load hook; runs after loading the environment
+* [added] Configuration.after\_load hook; runs after loading the environment
* [added] Configurable rsync port
* [added] Specs distributed by example, not file! Means better
distribution/fast spec suites.
2  lib/specjour.rb
View
@@ -29,7 +29,7 @@ module Specjour
autoload :Cucumber, 'specjour/cucumber'
autoload :RSpec, 'specjour/rspec'
- VERSION ||= "0.5.3"
+ VERSION ||= "0.5.4"
HOOKS_PATH ||= "./.specjour/hooks.rb"
PROGRAM_NAME ||= $PROGRAM_NAME # keep a reference of the original program name
11 lib/specjour/loader.rb
View
@@ -87,12 +87,19 @@ def load_app
end
def register_tests_with_printer
- tests = filtered_examples | feature_files
+ tests = rspec_examples | feature_files
connection.send_message :tests=, tests
end
+ def rspec_examples
+ if spec_files.any?
+ filtered_examples
+ else
+ []
+ end
+ end
+
def filtered_examples
- return [] unless spec_paths.any?
::RSpec.world.example_groups.map do |g|
g.descendants.map do |gs|
gs.examples

No commit comments for this range

Something went wrong with that request. Please try again.