Merge pull request #23 from Netflix/dev
use travis env to exclude perf test while building
This commit is contained in:
commit
f0d35b8b69
@ -1,6 +1,6 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe FastJsonapi::ObjectSerializer do
|
||||
describe FastJsonapi::ObjectSerializer, performance: true do
|
||||
include_context 'movie class'
|
||||
include_context 'ams movie class'
|
||||
|
||||
|
@ -8,6 +8,9 @@ Dir[File.dirname(__FILE__) + '/shared/contexts/*.rb'].each {|file| require file
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.include RSpec::Benchmark::Matchers
|
||||
if ENV['TRAVIS'] == 'true' || ENV['TRAVIS'] == true
|
||||
config.filter_run_excluding performance: true
|
||||
end
|
||||
end
|
||||
|
||||
ActiveModel::Serializer.config.adapter = :json_api
|
||||
|
Loading…
x
Reference in New Issue
Block a user