Permalink
Browse files

Remove vcr and its mock files

Specs run in integration with locally spawned Elasticsearch client.
  • Loading branch information...
1 parent 9d6b354 commit 93591eb58324a28b32b73c3275313d2fa74651e2 @saulius saulius committed Jan 20, 2014
View
@@ -63,7 +63,6 @@ group :test do
gem "simplecov"
gem "simplecov-rcov"
gem "webmock"
- gem "vcr"
end
group :router do
View
@@ -275,7 +275,6 @@ GEM
kgio (~> 2.6)
rack
raindrops (~> 0.7)
- vcr (2.2.5)
warden (1.2.3)
rack (>= 1.0)
webmock (1.8.11)
@@ -334,7 +333,6 @@ DEPENDENCIES
therubyracer (= 0.12.0)
uglifier
unicorn (~> 4.6.3)
- vcr
webmock
whenever (= 0.7.3)
yajl-ruby
@@ -12,7 +12,9 @@
it 'searches in supplied index' do
expect(search_result.hits.total).to be >= 1
- expect(search_result.hits.hits.first._source.goods_nomenclature_item_id).to eq commodity.goods_nomenclature_item_id
+ expect(search_result.hits.hits.map { |hit|
+ hit._source.goods_nomenclature_item_id
+ }).to include commodity.goods_nomenclature_item_id
end
it 'returns results wrapped in Hashie::Mash structure' do
View
@@ -1,8 +0,0 @@
-require 'vcr'
-
-VCR.configure do |c|
- c.allow_http_connections_when_no_cassette = true
- c.cassette_library_dir = Rails.root.join('spec', 'vcr')
- c.hook_into :webmock
- c.configure_rspec_metadata!
-end

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit 93591eb

Please sign in to comment.