Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
Add autospec binary to allow other spec frameworks to use autotest. […
Browse files Browse the repository at this point in the history
…#394 state:resolved milestone:"1.1.5"]
  • Loading branch information
dchelimsky committed Jun 19, 2008
1 parent f261f5b commit c12b4e0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGES
@@ -1,5 +1,11 @@
== Version 1.1.5 (in git)

IMPORTANT: use the new 'autospec' command instead of 'autotest'. We changed
the way autotest discovers rspec so the autotest executable won't
automatically load rspec anymore. This allows rspec to live side by side other
spec frameworks without always co-opting autotest through autotest's discovery
mechanism.

* Added additional characters to be escaped in step strings (patch from Jake Cahoon). Closes #417.
* Disable color codes on STDOUT when STDOUT.tty? is false (patch from Tim Pope). Closes #413.
* mock(:null_object=>true) plays nice with HTML (patch from Gerrit Kaiser). Closes #230.
Expand All @@ -10,6 +16,7 @@
* html story formatter correctly colors story/scenario red if step fails (Patch from Joseph Wilk). Closes #300
* plain text story formatter correctly colors story/scenario red if step fails (Patch from Joseph Wilk). Closes #439
* quiet deprecation warning on inflector - patch from RSL. Closes #430
* added autospec executable

== Version 1.1.4

Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -88,7 +88,7 @@ spec = Gem::Specification.new do |s|
s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$|^EXAMPLES.rd$/ }.to_a

s.bindir = 'bin'
s.executables = ['spec', 'spec_translator']
s.executables = ['spec', 'spec_translator', 'autospec']
s.default_executable = 'spec'
s.author = "RSpec Development Team"
s.email = "rspec-devel@rubyforge.org"
Expand Down
3 changes: 3 additions & 0 deletions bin/autospec
@@ -0,0 +1,3 @@
#!/usr/bin/env ruby
ENV['RSPEC'] = 'true'
system 'autotest'
2 changes: 1 addition & 1 deletion lib/autotest/discover.rb
@@ -1,3 +1,3 @@
Autotest.add_discovery do
"rspec" if File.exist?('spec')
"rspec" if File.exist?('spec') && ENV['RSPEC']
end

0 comments on commit c12b4e0

Please sign in to comment.