Skip to content

Commit

Permalink
Fix spacing/indentation of model_diagram spec
Browse files Browse the repository at this point in the history
  • Loading branch information
unixmonkey authored and jmccaffrey committed Aug 2, 2010
1 parent e3c909f commit ea94326
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions spec/models_diagram_spec.rb
Expand Up @@ -4,24 +4,26 @@

describe ModelsDiagram do
describe 'file processing' do

it 'should select all the files under the models dir' do
md = ModelsDiagram.new
files = md.get_files("spec/file_fixture/")
files.size.should == 3
end

it 'should exclude a specific file' do
options = OptionsStruct.new(:exclude => ['spec/file_fixture/app/models/dummy1.rb'])
md = ModelsDiagram.new(options)
files = md.get_files("spec/file_fixture/")
files.size.should == 2
end
it 'should exclude a glob pattern of files' do
options = OptionsStruct.new(:exclude => ['spec/file_fixture/app/models/*/*.rb'])
md = ModelsDiagram.new(options)
files = md.get_files("spec/file_fixture/")
files.size.should == 2
end


it 'should exclude a glob pattern of files' do
options = OptionsStruct.new(:exclude => ['spec/file_fixture/app/models/*/*.rb'])
md = ModelsDiagram.new(options)
files = md.get_files("spec/file_fixture/")
files.size.should == 2
end

end
end

0 comments on commit ea94326

Please sign in to comment.