lib/parliament/utils/test_helpers/vcr_helper.rb in parliament-utils-0.1.0 vs lib/parliament/utils/test_helpers/vcr_helper.rb in parliament-utils-0.2.0

- old
+ new

@@ -31,10 +31,10 @@ config.filter_sensitive_data('http://localhost:3030') { ENV['PARLIAMENT_BASE_URL'] } config.filter_sensitive_data('http://localhost:5000') { ENV['BANDIERA_URL'] } # Dynamically filter n-triple data config.before_record do |interaction| - should_ignore = ['_:node', '^^<http://www.w3.org/2001/XMLSchema#date>', '^^<http://www.w3.org/2001/XMLSchema#integer>'] + should_ignore = ['_:node', '^^<http://www.w3.org/2001/XMLSchema#date>', '^^<http://www.w3.org/2001/XMLSchema#dateTime>', '^^<http://www.w3.org/2001/XMLSchema#integer>'] # Check if content type header exists and if it includes application/n-triples if interaction.response.headers['Content-Type'] && interaction.response.headers['Content-Type'].include?('application/n-triples') # Split our data by line lines = interaction.response.body.split("\n")