Skip to content

Commit

Permalink
Merge pull request #113 from sendgrid/travis_ci_prism_fix
Browse files Browse the repository at this point in the history
Fix Travis CI Prism functionality, update deprecated File.exists
  • Loading branch information
thinkingserious authored Oct 18, 2016
2 parents d2d42c1 + 693321e commit d76da83
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/sendgrid/test_sendgrid-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class TestAPI < MiniTest::Test

unless File.exists?('/usr/local/bin/prism') || File.exists?(File.join(Dir.pwd, 'prism/bin/prism'))
unless File.exist?('/usr/local/bin/prism') || File.exists?(File.join(Dir.pwd, 'prism/bin/prism'))
if RUBY_PLATFORM =~ /mswin|mingw/
puts 'Please download the Windows binary (https://github.com/stoplightio/prism/releases) and place it in your /usr/local/bin directory'
else
Expand All @@ -26,11 +26,7 @@ class TestAPI < MiniTest::Test
puts 'Prism started'

def setup
if ENV['TRAVIS']
host = ENV['MOCK_HOST']
else
host = "http://localhost:4010"
end
host = "http://localhost:4010"
@sg = SendGrid::API.new(api_key: "SENDGRID_API_KEY", host: host)
end

Expand Down

0 comments on commit d76da83

Please sign in to comment.