Sha256: 948117d3320c1e21c09b3a4ea77480f226ac74a236f57b5d9f2a5951d0eae20b

Contents?: true

Size: 325 Bytes

Versions: 65

Compression:

Stored size: 325 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe "script/spec file" do
  it "should run a spec" do
    dir = File.dirname(__FILE__)
    output = `#{RAILS_ROOT}/script/spec #{dir}/sample_spec.rb`
    unless $?.exitstatus == 0
      flunk "command 'script/spec spec/sample_spec' failed\n#{output}"
    end
  end
end

Version data entries

65 entries across 65 versions & 11 rubygems

Version Path
rspec-rails-1.1.11 spec/rails/spec_spec.rb
rspec-rails-1.1.10 spec/rails/spec_spec.rb
rspec-rails-1.1.7 spec/rails/spec_spec.rb
rspec-rails-1.1.5 spec/rails/spec_spec.rb
rspec-rails-1.1.8 spec/rails/spec_spec.rb
rspec-rails-1.1.9 spec/rails/spec_spec.rb
rspec-rails-1.1.6 spec/rails/spec_spec.rb
spree-0.0.9 vendor/plugins/rspec_on_rails/spec/rails/spec_spec.rb
spree-0.0.8 starter-app/vendor/plugins/rspec_on_rails/spec/rails/spec_spec.rb
spree-0.2.0 vendor/plugins/rspec_on_rails/spec/rails/spec_spec.rb
spree-0.4.0 vendor/plugins/rspec-rails/spec/rails/spec_spec.rb
spree-0.4.1 vendor/plugins/rspec-rails/spec/rails/spec_spec.rb
spree-0.5.0 vendor/plugins/rspec-rails/spec/rails/spec_spec.rb
spree-0.5.1 vendor/plugins/rspec-rails/spec/rails/spec_spec.rb
typo-5.0.1 vendor/plugins/rspec_on_rails/spec/rails/spec_spec.rb
typo-5.0.2 vendor/plugins/rspec_on_rails/spec/rails/spec_spec.rb
typo-5.0.3.98.1 vendor/plugins/rspec_on_rails/spec/rails/spec_spec.rb
typo-5.0 vendor/plugins/rspec_on_rails/spec/rails/spec_spec.rb
typo-5.0.3.98 vendor/plugins/rspec_on_rails/spec/rails/spec_spec.rb
typo-5.1.2 vendor/plugins/rspec_on_rails/spec/rails/spec_spec.rb