mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Screw it, rely on an image being on Cloudinary
This commit is contained in:
parent
8909d25e3e
commit
a462886fe5
@ -1 +1 @@
|
||||
export CLOUDINARY_CLOUD_NAME=test
|
||||
export CLOUDINARY_CLOUD_NAME=danbarber
|
||||
|
||||
1
Gemfile
1
Gemfile
@ -67,4 +67,3 @@ gem 'skylight'
|
||||
gem 'slugtastic'
|
||||
gem 'squeel'
|
||||
gem 'unf'
|
||||
gem 'webmock'
|
||||
|
||||
@ -99,8 +99,6 @@ GEM
|
||||
coffee-script-source
|
||||
execjs
|
||||
coffee-script-source (1.9.1.1)
|
||||
crack (0.4.2)
|
||||
safe_yaml (~> 1.0.0)
|
||||
database_cleaner (1.5.0)
|
||||
datetime_picker_rails (0.0.4)
|
||||
momentjs-rails (>= 2.8.1)
|
||||
@ -282,7 +280,6 @@ GEM
|
||||
ruby-progressbar (1.7.5)
|
||||
ruby_parser (3.7.1)
|
||||
sexp_processor (~> 4.1)
|
||||
safe_yaml (1.0.4)
|
||||
sass (3.4.19)
|
||||
sass-rails (5.0.4)
|
||||
railties (>= 4.0.0, < 5.0)
|
||||
@ -333,9 +330,6 @@ GEM
|
||||
unf_ext (0.0.7.1)
|
||||
warden (1.2.3)
|
||||
rack (>= 1.0)
|
||||
webmock (1.21.0)
|
||||
addressable (>= 2.3.6)
|
||||
crack (>= 0.3.2)
|
||||
websocket-driver (0.6.2)
|
||||
websocket-extensions (>= 0.1.0)
|
||||
websocket-extensions (0.1.2)
|
||||
@ -388,7 +382,6 @@ DEPENDENCIES
|
||||
squeel
|
||||
uglifier
|
||||
unf
|
||||
webmock
|
||||
|
||||
BUNDLED WITH
|
||||
1.10.6
|
||||
|
||||
@ -10,10 +10,6 @@ feature 'visitor navigates site' do
|
||||
end
|
||||
|
||||
it 'increments the view counter when an image is displayed', js: true do
|
||||
image = File.read(File.join(fixture_path, 'photo.jpg'))
|
||||
stub_request(:get, 'http://res.cloudinary.com/test/image/upload/photo.jpg')
|
||||
.to_return(body: image, headers: { 'Content-Type' => 'image/jpeg' })
|
||||
|
||||
category = create(:category)
|
||||
photo = create(:photo, image_cloudinary_id: 'photo', featured: true, categories: [category])
|
||||
|
||||
|
||||
@ -4,7 +4,6 @@ require File.expand_path('../../config/environment', __FILE__)
|
||||
require 'rspec/rails'
|
||||
require 'capybara/rspec'
|
||||
require 'capybara/poltergeist'
|
||||
require 'webmock/rspec'
|
||||
|
||||
# For code coverage
|
||||
require 'simplecov'
|
||||
@ -17,8 +16,6 @@ Capybara.javascript_driver = :poltergeist
|
||||
# in spec/support/ and its subdirectories.
|
||||
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
|
||||
|
||||
WebMock.disable_net_connect!(:allow_localhost => true)
|
||||
|
||||
RSpec.configure do |config|
|
||||
# ## Mock Framework
|
||||
#
|
||||
|
||||
Loading…
Reference in New Issue
Block a user