Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Molina committed Apr 13, 2015
1 parent 4671204 commit 2ddf43e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/commands/generate_test.rb
Expand Up @@ -59,6 +59,7 @@ def default_options
content.must_match %( class Index)
content.must_match %( include Web::Action)
content.must_match %( def call(params))
content.wont_match %( self.body = 'OK')
end
end

Expand Down Expand Up @@ -148,6 +149,10 @@ def default_options
describe 'with --skip-view flag' do
let(:opts) { default_options.merge(skip_view: true) }

before do
capture_io { command.start }
end

describe 'apps/web/controllers/dashboard/index.rb' do
it 'generates it' do
content = @root.join('apps/web/controllers/dashboard/index.rb').read
Expand Down

0 comments on commit 2ddf43e

Please sign in to comment.