-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the test suite #143
Conversation
@@ -14,25 +29,30 @@ | |||
config.filter_sensitive_data('API_TOKEN') { ENV['MASTER_JWT'] } | |||
end | |||
|
|||
mode = ENV['MODE'] || 'unit' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the test mode now that we're using VCR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VCR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def entity_suffix | ||
'rubytest' | ||
end | ||
|
||
puts "Entity suffix is #{entity_suffix}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving test mode-specific code
Gemfile
Outdated
@@ -13,4 +13,5 @@ end | |||
group :test do | |||
gem 'webmock', require: false | |||
gem 'vcr', require: false | |||
gem 'codecov', :require => false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the arrow?
spec/spec_helper.rb
Outdated
@@ -6,6 +20,7 @@ | |||
|
|||
require 'vcr' | |||
VCR.configure do |config| | |||
# Uncomment the line below to record new cassettes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does that mean? should it be clarified?
@@ -14,25 +29,30 @@ | |||
config.filter_sensitive_data('API_TOKEN') { ENV['MASTER_JWT'] } | |||
end | |||
|
|||
mode = ENV['MODE'] || 'unit' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VCR?
Dir['./lib/**/*.rb'].each { |f| require f } | ||
Dir['./spec/support/**/*.rb'].each { |f| require f } | ||
Dir['./spec/support/*.rb'].each { |f| require f } | ||
|
||
require 'rspec' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cosmetic but, shouldn't this be on the top of the file instead of flying here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually no ... config.include Credentials
needs to happen after the file requires
Changes
full
ENV vartest
Rake task