Pre-transpec

This commit is contained in:
erwanlr
2014-06-02 22:02:44 +02:00
parent 5caf4f45a9
commit c12b1d0670
3 changed files with 31 additions and 28 deletions

19
Gemfile
View File

@@ -1,13 +1,14 @@
source "https://rubygems.org"
source 'https://rubygems.org'
gem "typhoeus", "~>0.6.8"
gem "nokogiri"
gem "json"
gem "terminal-table"
gem "ruby-progressbar", ">=1.4.2"
gem 'typhoeus', '~>0.6.8'
gem 'nokogiri'
gem 'json'
gem 'terminal-table'
gem 'ruby-progressbar', '>=1.4.2'
group :test do
gem "webmock", ">=1.17.2"
gem "simplecov"
gem "rspec", :require => "spec"
gem 'webmock', '>=1.17.2'
gem 'simplecov'
gem 'rspec', '~>3.0'
gem 'rspec-its'
end

View File

@@ -21,6 +21,7 @@ describe Vulnerability do
context 'with fixed version argument' do
let(:fixed_version) { '1.0' }
its(:title) { should be title }
its(:references) { should be references }
its(:type) { should be type }

View File

@@ -1,5 +1,6 @@
# encoding: UTF-8
require 'rspec/its'
require 'webmock/rspec'
# Code Coverage (only works with ruby >= 1.9)
require 'simplecov' if RUBY_VERSION >= '1.9'