1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

Reorg spec dir to have units and functionals

This commit is contained in:
Scott Barron 2008-02-21 12:18:08 -05:00
parent a68200556e
commit 7a734376c4
6 changed files with 8 additions and 7 deletions

View file

@ -66,14 +66,14 @@ if !defined?(Spec)
else
desc "Run all examples with RCov"
Spec::Rake::SpecTask.new('cruise') do |t|
t.spec_files = FileList['spec/*.rb']
t.spec_files = FileList['spec/**/*.rb']
t.rcov = true
t.rcov_opts = ['--exclude', 'spec']
end
desc "Run all examples"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = FileList['spec/*.rb']
t.spec_files = FileList['spec/**/*.rb']
t.rcov = false
t.spec_opts = ['-cfs']
end

2
spec/spec_helper.rb Normal file
View file

@ -0,0 +1,2 @@
require File.join(File.dirname(__FILE__), '..', 'lib', 'aasm')
require File.join(File.dirname(__FILE__), '..', 'lib', 'state')

View file

@ -1,5 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'lib', 'aasm')
require File.join(File.dirname(__FILE__), '..', 'lib', 'state')
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
class Foo
include AASM

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'lib', 'event')
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
describe AASM::SupportingClasses::Event do
before(:each) do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'lib', 'state')
require File.join(File.dirname(__FILE__), '..', 'spec_helper')

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'lib', 'state_transition')
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
describe AASM::SupportingClasses::StateTransition do
it 'should set from, to, and opts attr readers' do