Skip to content

Commit

Permalink
Fix commands#new_test
Browse files Browse the repository at this point in the history
Be more flexible with assertions, a test depending on how many spaces
are between gem and version is too brittle

Fix: https://travis-ci.org/lotus/lotus/jobs/75871503#L220-L221
  • Loading branch information
brennovich committed Aug 18, 2015
1 parent 40e0ac1 commit b2de0f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/commands/new_test.rb
Expand Up @@ -44,8 +44,8 @@ def container_options
content = @root.join('Gemfile').read
content.must_match %(gem 'bundler')
content.must_match %(gem 'rake')
content.must_match %(gem 'lotusrb', '#{ Lotus::VERSION }')
content.must_match %(gem 'lotus-model', '~> 0.4')
content.must_match %r(gem 'lotusrb',\ +'#{ Lotus::VERSION }')
content.must_match %r(gem 'lotus-model',\ +'~> 0.4')
content.must_match %(gem 'capybara')
end

Expand Down

0 comments on commit b2de0f3

Please sign in to comment.