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:
parent
a68200556e
commit
7a734376c4
6 changed files with 8 additions and 7 deletions
4
Rakefile
4
Rakefile
|
@ -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
2
spec/spec_helper.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
require File.join(File.dirname(__FILE__), '..', 'lib', 'aasm')
|
||||
require File.join(File.dirname(__FILE__), '..', 'lib', 'state')
|
|
@ -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
|
|
@ -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
|
|
@ -1,4 +1,4 @@
|
|||
require File.join(File.dirname(__FILE__), '..', 'lib', 'state')
|
||||
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
|
||||
|
||||
|
||||
|
|
@ -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
|
Loading…
Reference in a new issue