spec/cli_spec.rb in arigato-0.1.2 vs spec/cli_spec.rb in arigato-0.1.3
- old
+ new
@@ -78,9 +78,19 @@
end
it 'generate HTML with bootstrap' do
expect(File.read(CLI::HTML_FILE)).to match('bootstrap')
end
end
+
+ context 'when gem with git' do
+ before(:each) do
+ subject.invoke(:generate, nil, file: 'Gemfile')
+ end
+ it 'generate HTML with bootstrap' do
+ expect(File.read(CLI::HTML_FILE)).to match('twitter-bootstrap-rails')
+ end
+ end
+
end
end
# https://github.com/wycats/thor/blob/master/spec/helper.rb