Permalink
Browse files

more readme work

  • Loading branch information...
alexrothenberg committed Jun 9, 2011
1 parent ff9e53a commit c71ad18a2efb66ab83d3673ef3f900219bed92be
Showing with 10 additions and 7 deletions.
  1. +10 −7 README.md
View
@@ -24,16 +24,19 @@ A gem that makes it easy to write specs for your Rails 3 Generators.
capture(:stdout) { gen.invoke_all }
end
- describe 'checking for output' do
- subject { file('spec/models/posts_spec.rb') }
+ describe 'the generated files' do
before do
run_generator %w(posts)
end
- it { should exist }
- it { should contain /require 'spec_helper'/ }
- it { should /describe Posts/ }
- it 'should have created a migration' do
- file('db/migrate/create_posts.rb).should be_a_migration
+ describe 'the spec' do
+ subject { file('spec/models/posts_spec.rb') }
+ it { should exist }
+ it { should contain /require 'spec_helper'/ }
+ it { should /describe Posts/ }
+ end
+ describe 'the migration' do
+ subject { file('db/migrate/create_posts.rb') }
+ it { should be_a_migration }
end
end
end

0 comments on commit c71ad18

Please sign in to comment.