mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
11 lines
No EOL
325 B
Ruby
11 lines
No EOL
325 B
Ruby
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 |