diff --git a/lib/parliament.rb b/lib/parliament.rb index dd461f9..934808d 100644 --- a/lib/parliament.rb +++ b/lib/parliament.rb @@ -1,11 +1,8 @@ require 'net/http' -require 'grom' require 'parliament/version' require 'parliament/request' require 'parliament/response' -require 'parliament/utils' -require 'parliament/decorator' require 'parliament/builder' require 'parliament/network_error' diff --git a/lib/parliament/builder.rb b/lib/parliament/builder.rb index 5b158e5..ae97b3d 100644 --- a/lib/parliament/builder.rb +++ b/lib/parliament/builder.rb @@ -3,6 +3,5 @@ module Parliament # @since 0.7.0 module Builder require 'parliament/builder/base_response_builder' - require 'parliament/builder/ntriple_response_builder' end end diff --git a/lib/parliament/builder/base_response_builder.rb b/lib/parliament/builder/base_response_builder.rb index 8262719..b4985c5 100644 --- a/lib/parliament/builder/base_response_builder.rb +++ b/lib/parliament/builder/base_response_builder.rb @@ -1,12 +1,21 @@ module Parliament module Builder + # Base response builder, allowing the user to return the body of an HTTPResponse. + # @since 0.7.5 class BaseResponseBuilder - def initialize(response) + # Creates a new BaseReponseBuilder. + # @param [HTTPResponse] response an HTTP response. + # @param [Module] decorators a namespace which contains modules used to decorate the objects we receive. It is not used directly by the BaseResponseBuilder, but is there for API completeness. + def initialize(response:, decorators: nil) @response = response + _ = decorators end + # Builds a Parliament::Response::BaseResponse. + # + # @return [Parliament::Response::Base::Response] a Parliament::Response::BaseResponse containing the HTTPResponse. def build - @response + Parliament::Response::BaseResponse.new(@response) end end end diff --git a/lib/parliament/builder/ntriple_response_builder.rb b/lib/parliament/builder/ntriple_response_builder.rb deleted file mode 100644 index 9b1b679..0000000 --- a/lib/parliament/builder/ntriple_response_builder.rb +++ /dev/null @@ -1,25 +0,0 @@ -module Parliament - module Builder - class NTripleResponseBuilder < Parliament::Builder::BaseResponseBuilder - def build - objects = Grom::Reader.new(@response.body).objects - objects.map { |object| assign_decorator(object) } - - Parliament::Response.new(objects) - end - - private - - def assign_decorator(object) - return object unless object.respond_to?(:type) - - object_type = Grom::Helper.get_id(object.type) - - return object unless Parliament::Decorator.constants.include?(object_type.to_sym) - - decorator_module = Object.const_get("Parliament::Decorator::#{object_type}") - object.extend(decorator_module) - end - end - end -end diff --git a/lib/parliament/decorator.rb b/lib/parliament/decorator.rb deleted file mode 100644 index 038a768..0000000 --- a/lib/parliament/decorator.rb +++ /dev/null @@ -1,27 +0,0 @@ -module Parliament - # Decorator namespace - module Decorator - require_relative '../parliament/decorator/constituency_area' - require_relative '../parliament/decorator/constituency_group' - - require_relative '../parliament/decorator/contact_point' - - require_relative '../parliament/decorator/gender' - require_relative '../parliament/decorator/gender_identity' - - require_relative '../parliament/decorator/house' - require_relative '../parliament/decorator/house_incumbency' - require_relative '../parliament/decorator/house_seat' - - require_relative '../parliament/decorator/incumbency' - - require_relative '../parliament/decorator/party' - require_relative '../parliament/decorator/party_membership' - - require_relative '../parliament/decorator/person' - - require_relative '../parliament/decorator/postal_address' - - require_relative '../parliament/decorator/seat_incumbency' - end -end diff --git a/lib/parliament/decorator/constituency_area.rb b/lib/parliament/decorator/constituency_area.rb deleted file mode 100644 index 9ba3268..0000000 --- a/lib/parliament/decorator/constituency_area.rb +++ /dev/null @@ -1,27 +0,0 @@ -module Parliament - module Decorator - # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/ConstituencyArea - module ConstituencyArea - # Alias constituencyAreaLatitude with fallback. - # - # @return [String, String] the latitude of the Grom::Node or an empty string. - def latitude - respond_to?(:constituencyAreaLatitude) ? constituencyAreaLatitude : '' - end - - # Alias constituencyAreaLongitude with fallback. - # - # @return [String, String] the longitude of the Grom::Node or an empty string. - def longitude - respond_to?(:constituencyAreaLongitude) ? constituencyAreaLongitude : '' - end - - # Alias constituencyAreaExtent with fallback. - # - # @return [String, String] the polygon of the Grom::Node or an empty string. - def polygon - respond_to?(:constituencyAreaExtent) ? constituencyAreaExtent : '' - end - end - end -end diff --git a/lib/parliament/decorator/constituency_group.rb b/lib/parliament/decorator/constituency_group.rb deleted file mode 100644 index c955f14..0000000 --- a/lib/parliament/decorator/constituency_group.rb +++ /dev/null @@ -1,92 +0,0 @@ -module Parliament - module Decorator - # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/ConstituencyGroup - module ConstituencyGroup - # Alias constituencyGroupName with fallback. - # - # @return [String, String] the name of the Grom::Node or an empty string. - def name - respond_to?(:constituencyGroupName) ? constituencyGroupName : '' - end - - # Alias constituencyGroupStartDate with fallback. - # - # @return [DateTime, nil] the start date of the Grom::Node or nil. - def start_date - @start_date ||= respond_to?(:constituencyGroupStartDate) ? DateTime.parse(constituencyGroupStartDate) : nil - end - - # Alias constituencyGroupEndDate with fallback. - # - # @return [DateTime, nil] the end date of the Grom::Node or nil. - def end_date - @end_date ||= respond_to?(:constituencyGroupEndDate) ? DateTime.parse(constituencyGroupEndDate) : nil - end - - # Alias constituencyGroupHasHouseSeat with fallback. - # - # @return [Array, Array] the house seats of the Grom::Node or an empty array. - def seats - respond_to?(:constituencyGroupHasHouseSeat) ? constituencyGroupHasHouseSeat : [] - end - - # Alias houseSeatHasSeatIncumbency with fallback. - # - # @return [Array, Array] the seat incumbencies of the Grom::Node or an empty array. - def seat_incumbencies - return @seat_incumbencies unless @seat_incumbencies.nil? - - seat_incumbencies = [] - seats.each do |seat| - seat_incumbencies << seat.seat_incumbencies - end - - @seat_incumbencies = seat_incumbencies.flatten.uniq - end - - # Alias incumbencyHasMember with fallback. - # - # @return [Array, Array] the members of the Grom::Node or an empty array. - def members - return @members unless @members .nil? - - members = [] - seat_incumbencies.each do |seat_incumbency| - members << seat_incumbency.member - end - - @members = members.flatten.uniq - end - - # Alias constituencyGroupHasConstituencyArea with fallback. - # - # @return [Grom::Node, nil] a Grom::Node with type http://id.ukpds.org/schema/ConstituencyArea or nil. - def area - respond_to?(:constituencyGroupHasConstituencyArea) ? constituencyGroupHasConstituencyArea.first : nil - end - - # Alias incumbencyHasContactPoint with fallback. - # - # @return [Array, Array] the contact points of the Grom::Node or an empty array. - def contact_points - return @contact_points unless @contact_points.nil? - - contact_points = [] - seat_incumbencies.each do |seat_incumbency| - contact_points << seat_incumbency.contact_points - end - - @contact_points = contact_points.flatten.uniq - end - - # Checks if Grom::Node has an end date. - # - # @return [Boolean] a boolean depending on whether or not the Grom::Node has an end date. - def current? - has_end_date = respond_to?(:constituencyGroupEndDate) - - !has_end_date - end - end - end -end diff --git a/lib/parliament/decorator/contact_point.rb b/lib/parliament/decorator/contact_point.rb deleted file mode 100644 index 67b347c..0000000 --- a/lib/parliament/decorator/contact_point.rb +++ /dev/null @@ -1,48 +0,0 @@ -module Parliament - module Decorator - # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/ContactPoint - module ContactPoint - # Alias contactPointHasPostalAddress with fallback. - # - # @return [Array, Array] an array of the postal addresses for the Grom::Node or an empty array. - def postal_addresses - respond_to?(:contactPointHasPostalAddress) ? contactPointHasPostalAddress : [] - end - - # Alias email with fallback. - # - # @return [String, String] the email of the Grom::Node or an empty string. - def email - instance_variable_get('@email'.to_sym).nil? ? '' : instance_variable_get('@email'.to_sym) - end - - # Alias phoneNumber with fallback. - # - # @return [String, String] the phone number of the Grom::Node or an empty string. - def phone_number - respond_to?(:phoneNumber) ? phoneNumber : '' - end - - # Alias faxNumber with fallback. - # - # @return [String, String] the fax number of the Grom::Node or an empty string. - def fax_number - respond_to?(:faxNumber) ? faxNumber : '' - end - - # Alias contactPointHasPerson with fallback. - # - # @return [Array, Array] the person connected to the Grom::Node or an empty array. - def person - respond_to?(:contactPointHasPerson) ? contactPointHasPerson : [] - end - - # Alias contactPointHasIncumbency with fallback. - # - # @return [Grom::Node, nil] the incumbency of the Grom::Node or nil. - def incumbency - respond_to?(:contactPointHasIncumbency) ? contactPointHasIncumbency.first : nil - end - end - end -end diff --git a/lib/parliament/decorator/gender.rb b/lib/parliament/decorator/gender.rb deleted file mode 100644 index 517e10f..0000000 --- a/lib/parliament/decorator/gender.rb +++ /dev/null @@ -1,13 +0,0 @@ -module Parliament - module Decorator - # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/Gender - module Gender - # Alias genderName with fallback. - # - # @return [String, String] the gender name of the Grom::Node or an empty string. - def name - respond_to?(:genderName) ? genderName : '' - end - end - end -end diff --git a/lib/parliament/decorator/gender_identity.rb b/lib/parliament/decorator/gender_identity.rb deleted file mode 100644 index d44ef8a..0000000 --- a/lib/parliament/decorator/gender_identity.rb +++ /dev/null @@ -1,13 +0,0 @@ -module Parliament - module Decorator - # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/GenderIdentity - module GenderIdentity - # Alias genderIdentityHasGender with fallback. - # - # @return [Grom::Node, nil] a Grom::Node with type http://id.ukpds.org/schema/Gender or nil. - def gender - respond_to?(:genderIdentityHasGender) ? genderIdentityHasGender.first : nil - end - end - end -end diff --git a/lib/parliament/decorator/house.rb b/lib/parliament/decorator/house.rb deleted file mode 100644 index 23a7d43..0000000 --- a/lib/parliament/decorator/house.rb +++ /dev/null @@ -1,41 +0,0 @@ -module Parliament - module Decorator - # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/House - module House - # Alias houseName with fallback. - # - # @return [String, String] the name of the Grom::Node or an empty string. - def name - respond_to?(:houseName) ? houseName : '' - end - - # Alias houseSeatHasSeatIncumbency with fallback. - # - # @return [Array, Array] the seat incumbencies of the Grom::Node or an empty array. - def seat_incumbencies - return @seat_incumbencies unless @seat_incumbencies.nil? - - seat_incumbencies = [] - seats.each do |seat| - seat_incumbencies << seat.seat_incumbencies - end - - @seat_incumbencies = seat_incumbencies.flatten.uniq - end - - # Alias houseHasHouseSeat with fallback. - # - # @return [Array, Array] the house seats of the Grom::Node or an empty array. - def seats - respond_to?(:houseHasHouseSeat) ? houseHasHouseSeat : [] - end - - # Alias houseHasHouseIncumbency with fallback. - # - # @return [Array, Array] the house incumbencies of the Grom::Node or an empty array. - def house_incumbencies - respond_to?(:houseHasHouseIncumbency) ? houseHasHouseIncumbency : [] - end - end - end -end diff --git a/lib/parliament/decorator/house_incumbency.rb b/lib/parliament/decorator/house_incumbency.rb deleted file mode 100644 index c860502..0000000 --- a/lib/parliament/decorator/house_incumbency.rb +++ /dev/null @@ -1,48 +0,0 @@ -module Parliament - module Decorator - # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/HouseIncumbency - module HouseIncumbency - # Alias incumbencyStartDate with fallback. - # - # @return [DateTime, nil] the start date of the Grom::Node or nil. - def start_date - @start_date ||= respond_to?(:incumbencyStartDate) ? DateTime.parse(incumbencyStartDate) : nil - end - - # Alias incumbencyEndDate with fallback. - # - # @return [DateTime, nil] the end date of the Grom::Node or nil. - def end_date - @end_date ||= respond_to?(:incumbencyEndDate) ? DateTime.parse(incumbencyEndDate) : nil - end - - # Checks if Grom::Node has an end date. - # - # @return [Boolean] a boolean depending on whether or not the Grom::Node has an end date. - def current? - end_date.nil? - end - - # Alias houseIncumbencyHasHouse with fallback. - # - # @return [Grom::Node, nil] the house of the Grom::Node or nil. - def house - respond_to?(:houseIncumbencyHasHouse) ? houseIncumbencyHasHouse.first : nil - end - - # Alias incumbencyHasMember with fallback. - # - # @return [Grom::Node, nil] the member connected to the Grom::Node or nil. - def member - respond_to?(:incumbencyHasMember) ? incumbencyHasMember.first : nil - end - - # Alias incumbencyHasContactPoint with fallback. - # - # @return [Array, Array] the contact points of the Grom::Node or an empty array. - def contact_points - respond_to?(:incumbencyHasContactPoint) ? incumbencyHasContactPoint : [] - end - end - end -end diff --git a/lib/parliament/decorator/house_seat.rb b/lib/parliament/decorator/house_seat.rb deleted file mode 100644 index f2e268f..0000000 --- a/lib/parliament/decorator/house_seat.rb +++ /dev/null @@ -1,27 +0,0 @@ -module Parliament - module Decorator - # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/HouseSeat - module HouseSeat - # Alias houseSeatHasHouse with fallback. - # - # @return [Grom::Node, nil] the house of the Grom::Node or nil. - def house - respond_to?(:houseSeatHasHouse) ? houseSeatHasHouse.first : nil - end - - # Alias houseSeatHasConstituencyGroup with fallback. - # - # @return [Grom::Node, nil] the constituency group of the Grom::Node or nil. - def constituency - respond_to?(:houseSeatHasConstituencyGroup) ? houseSeatHasConstituencyGroup.first : nil - end - - # Alias houseSeatHasSeatIncumbency with fallback. - # - # @return [Array, Array] the seat incumbencies of the Grom::Node or an empty. - def seat_incumbencies - respond_to?(:houseSeatHasSeatIncumbency) ? houseSeatHasSeatIncumbency : [] - end - end - end -end diff --git a/lib/parliament/decorator/incumbency.rb b/lib/parliament/decorator/incumbency.rb deleted file mode 100644 index ed5d112..0000000 --- a/lib/parliament/decorator/incumbency.rb +++ /dev/null @@ -1,55 +0,0 @@ -module Parliament - module Decorator - # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/Incumbency - module Incumbency - # Alias incumbencyStartDate with fallback. - # - # @return [DateTime, nil] the start date of the Grom::Node or nil. - def start_date - @start_date ||= respond_to?(:incumbencyStartDate) ? DateTime.parse(incumbencyStartDate) : nil - end - - # Alias incumbencyEndDate with fallback. - # - # @return [DateTime, nil] the end date of the Grom::Node or nil. - def end_date - @end_date ||= respond_to?(:incumbencyEndDate) ? DateTime.parse(incumbencyEndDate) : nil - end - - # Checks if Grom::Node has an end date. - # - # @return [Boolean] a boolean depending on whether or not the Grom::Node has an end date. - def current? - end_date.nil? - end - - # Alias incumbencyHasMember with fallback. - # - # @return [Grom::Node, nil] the member connected to the Grom::Node or nil. - def member - respond_to?(:incumbencyHasMember) ? incumbencyHasMember.first : nil - end - - # Alias incumbencyHasContactPoint with fallback. - # - # @return [Array, Array] the contact points of the Grom::Node or an empty array. - def contact_points - respond_to?(:incumbencyHasContactPoint) ? incumbencyHasContactPoint : [] - end - - # Alias seatIncumbencyHasHouseSeat with fallback. - # - # @return [Grom::Node, nil] the seat of the Grom::Node or nil. - def seat - respond_to?(:seatIncumbencyHasHouseSeat) ? seatIncumbencyHasHouseSeat.first : nil - end - - # Alias houseIncumbencyHasHouse with fallback. - # - # @return [Grom::Node, nil] the house of the Grom::Node or nil. - def house - respond_to?(:houseIncumbencyHasHouse) ? houseIncumbencyHasHouse.first : nil - end - end - end -end diff --git a/lib/parliament/decorator/party.rb b/lib/parliament/decorator/party.rb deleted file mode 100644 index e4d1596..0000000 --- a/lib/parliament/decorator/party.rb +++ /dev/null @@ -1,27 +0,0 @@ -module Parliament - module Decorator - # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/Party - module Party - # Alias partyName with fallback. - # - # @return [String, String] the party name of the Grom::Node or an empty string. - def name - respond_to?(:partyName) ? partyName : '' - end - - # Alias partyHasPartyMembership with fallback. - # - # @return [Array, Array] the party memberships of the Grom::Node or an empty array. - def party_memberships - respond_to?(:partyHasPartyMembership) ? partyHasPartyMembership : [] - end - - # Alias count with fallback. - # - # @return [Integer, nil] the count of members of the Grom::Node or nil. - def member_count - respond_to?(:count) ? count.to_i : nil - end - end - end -end diff --git a/lib/parliament/decorator/party_membership.rb b/lib/parliament/decorator/party_membership.rb deleted file mode 100644 index db26aa7..0000000 --- a/lib/parliament/decorator/party_membership.rb +++ /dev/null @@ -1,34 +0,0 @@ -module Parliament - module Decorator - # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/PartyMembership - module PartyMembership - # Alias partyMembershipHasParty with fallback. - # - # @return [Grom::Node, nil] the party of the Grom::Node or nil. - def party - respond_to?(:partyMembershipHasParty) ? partyMembershipHasParty.first : nil - end - - # Alias partyMembershipStartDate with fallback. - # - # @return [DateTime, nil] the start date of the Grom::Node or nil. - def start_date - @start_date ||= respond_to?(:partyMembershipStartDate) ? DateTime.parse(partyMembershipStartDate) : nil - end - - # Alias partyMembershipEndDate with fallback. - # - # @return [DateTime, nil] the end date of the Grom::Node or nil. - def end_date - @end_date ||= respond_to?(:partyMembershipEndDate) ? DateTime.parse(partyMembershipEndDate) : nil - end - - # Checks if Grom::Node has an end date. - # - # @return [Boolean] a boolean depending on whether or not the Grom::Node has an end date. - def current? - end_date.nil? - end - end - end -end diff --git a/lib/parliament/decorator/person.rb b/lib/parliament/decorator/person.rb deleted file mode 100644 index f49fe43..0000000 --- a/lib/parliament/decorator/person.rb +++ /dev/null @@ -1,188 +0,0 @@ -module Parliament - module Decorator - # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/Person. - # rubocop:disable ModuleLength - module Person - # Alias personGivenName with fallback. - # - # @return [String, String] the given name of the Grom::Node or an empty string. - def given_name - respond_to?(:personGivenName) ? personGivenName : '' - end - - # Alias personFamilyName with fallback. - # - # @return [String, String] the family name of the Grom::Node or an empty string. - def family_name - respond_to?(:personFamilyName) ? personFamilyName : '' - end - - # Alias personOtherNames with fallback. - # - # @return [String, String] the other names of the Grom::Node or an empty string. - def other_name - respond_to?(:personOtherNames) ? personOtherNames : '' - end - - # Alias personDateOfBirth with fallback. - # - # @return [DateTime, nil] the date of birth of the Grom::Node or nil. - def date_of_birth - @date_of_birth ||= respond_to?(:personDateOfBirth) ? DateTime.parse(personDateOfBirth) : nil - end - - # Builds a full name using personGivenName and personFamilyName. - # - # @return [String, String] the full name of the Grom::Node or an empty string. - def full_name - return @full_name unless @full_name.nil? - - full_name = [] - full_name << personGivenName if respond_to?(:personGivenName) - full_name << personFamilyName if respond_to?(:personFamilyName) - - @full_name = full_name.join(' ') - end - - # Alias memberHasIncumbency with fallback. - # - # @return [Array, Array] all the incumbencies of the Grom::Node or an empty array. - def incumbencies - respond_to?(:memberHasIncumbency) ? memberHasIncumbency : [] - end - - # Alias memberHasIncumbency with fallback. - # - # @return [Array, Array] the seat incumbencies of the Grom::Node or an empty array. - def seat_incumbencies - @seat_incumbencies ||= incumbencies.select { |inc| inc.type == 'http://id.ukpds.org/schema/SeatIncumbency' } - end - - # Alias memberHasIncumbency with fallback. - # - # @return [Array, Array] the house incumbencies of the Grom::Node or an empty array. - def house_incumbencies - @house_incumbencies ||= incumbencies.select { |inc| inc.type == 'http://id.ukpds.org/schema/HouseIncumbency' } - end - - # Alias seatIncumbencyHasHouseSeat with fallback. - # - # @return [Array, Array] the seats of the Grom::Node or an empty array. - def seats - @seats ||= seat_incumbencies.map(&:seat).flatten.uniq - end - - # Alias houseSeatHasHouse with fallback. - # - # @return [Array, Array] the houses of the Grom::Node or an empty array. - def houses - @houses ||= [seats.map(&:house), house_incumbencies.map(&:house)].flatten.uniq - end - - # Alias houseSeatHasConstituencyGroup with fallback. - # - # @return [Array, Array] the constituencies of the Grom::Node or an empty array. - def constituencies - @constituencies ||= seats.map(&:constituency).flatten.uniq - end - - # Alias partyMemberHasPartyMembership with fallback. - # - # @return [Array, Array] the party memberships of the Grom::Node or an empty array. - def party_memberships - respond_to?(:partyMemberHasPartyMembership) ? partyMemberHasPartyMembership : [] - end - - # Alias partyMembershipHasParty with fallback. - # - # @return [Array, Array] the parties of the Grom::Node or an empty array. - def parties - @parties ||= party_memberships.map(&:party).flatten.uniq.compact - end - - # Alias personHasContactPoint with fallback. - # - # @return [Array, Array] the contact points of the Grom::Node or an empty array. - def contact_points - respond_to?(:personHasContactPoint) ? personHasContactPoint : [] - end - - # Alias personHasGenderIdentity with fallback. - # - # @return [Array, Array] the gender identities of the Grom::Node or an empty array. - def gender_identities - respond_to?(:personHasGenderIdentity) ? personHasGenderIdentity : [] - end - - # Alias genderIdentityHasGender with fallback. - # - # @return [Array, Array] the gender of the Grom::Node or nil. - def gender - gender_identities.empty? ? nil : gender_identities.first.gender - end - - # Checks the statuses of the Grom::Node. - # - # @return [Hash, Hash] the statuses of the Grom::Node or an empty hash. - def statuses - return @statuses unless @statuses.nil? - - statuses = {} - statuses[:house_membership_status] = house_membership_status - statuses[:general_membership_status] = general_membership_status - - @statuses = statuses - end - - # Alias D79B0BAC513C4A9A87C9D5AFF1FC632F with fallback. - # - # @return [String, String] the full title of the Grom::Node or an empty string. - def full_title - respond_to?(:D79B0BAC513C4A9A87C9D5AFF1FC632F) ? self.D79B0BAC513C4A9A87C9D5AFF1FC632F : '' - end - - # Alias F31CBD81AD8343898B49DC65743F0BDF with fallback. - # - # @return [String, String] the display name of the Grom::Node or the full name. - def display_name - respond_to?(:F31CBD81AD8343898B49DC65743F0BDF) ? self.F31CBD81AD8343898B49DC65743F0BDF : full_name - end - - # Alias A5EE13ABE03C4D3A8F1A274F57097B6C with fallback. - # - # @return [String, String] the sort name of the Grom::Node or an empty string. - def sort_name - respond_to?(:A5EE13ABE03C4D3A8F1A274F57097B6C) ? self.A5EE13ABE03C4D3A8F1A274F57097B6C : '' - end - - private - - def house_membership_status - no_current_seat_incumbency = seat_incumbencies.select(&:current?).empty? - no_current_house_incumbency = house_incumbencies.select(&:current?).empty? - former_lord = (!house_incumbencies.empty? && no_current_house_incumbency) - former_mp = (!seat_incumbencies.empty? && no_current_seat_incumbency) - - build_house_membership_status(no_current_seat_incumbency, no_current_house_incumbency, former_lord, former_mp) - end - - # TODO: Convert hard-coded strings to language file values - def build_house_membership_status(no_current_seat_incumbency, no_current_house_incumbency, former_lord, former_mp) - statuses = [] - statuses << 'Current MP' unless no_current_seat_incumbency - statuses << 'Member of the House of Lords' unless no_current_house_incumbency - statuses << 'Former Member of the House of Lords' if former_lord - statuses << 'Former MP' if former_mp - - statuses - end - - def general_membership_status - statuses = [] - statuses << 'Current Member' unless incumbencies.select(&:current?).empty? - statuses << 'Former Member' if !incumbencies.empty? && incumbencies.select(&:current?).empty? - statuses - end - end - end -end diff --git a/lib/parliament/decorator/postal_address.rb b/lib/parliament/decorator/postal_address.rb deleted file mode 100644 index 32e319f..0000000 --- a/lib/parliament/decorator/postal_address.rb +++ /dev/null @@ -1,26 +0,0 @@ -module Parliament - module Decorator - # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/PostalAddress - module PostalAddress - # Builds a full address using the lines of the address and the postcode. - # - # @return [String, String] the full address of the Grom::Node or an empty string. - def full_address - address_array.join(', ') - end - - private - - def address_array - address_array = [] - (1..5).each do |i| - if respond_to?("addressLine#{i}".to_sym) - address_array << instance_variable_get("@addressLine#{i}".to_sym) - end - end - address_array << postCode if respond_to?(:postCode) - address_array - end - end - end -end diff --git a/lib/parliament/decorator/seat_incumbency.rb b/lib/parliament/decorator/seat_incumbency.rb deleted file mode 100644 index 5790f6e..0000000 --- a/lib/parliament/decorator/seat_incumbency.rb +++ /dev/null @@ -1,69 +0,0 @@ -module Parliament - module Decorator - # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/SeatIncumbency - module SeatIncumbency - # Alias incumbencyStartDate with fallback. - # - # @return [DateTime, nil] the start date of the Grom::Node or nil. - def start_date - respond_to?(:incumbencyStartDate) ? DateTime.parse(incumbencyStartDate) : nil - end - - # Alias incumbencyEndDate with fallback. - # - # @return [DateTime, nil] the end date of the Grom::Node or nil. - def end_date - respond_to?(:incumbencyEndDate) ? DateTime.parse(incumbencyEndDate) : nil - end - - # Alias seatIncumbencyHasHouseSeat with fallback. - # - # @return [Grom::Node, nil] the seat of the Grom::Node or nil. - def seat - respond_to?(:seatIncumbencyHasHouseSeat) ? seatIncumbencyHasHouseSeat.first : nil - end - - # Checks if Grom::Node has no end date. - # - # @return [Boolean] a boolean depending on whether or not the Grom::Node has an end date. - def current? - !former? - end - - # Checks if Grom::Node has an end date. - # - # @return [Boolean] a boolean depending on whether or not the Grom::Node has an end date. - def former? - respond_to?(:incumbencyEndDate) - end - - # Alias houseSeatHasHouse with fallback. - # - # @return [Grom::Node, nil] the house of the Grom::Node or nil. - def house - seat.nil? ? nil : seat.house - end - - # Alias houseSeatHasConstituencyGroup with fallback. - # - # @return [Grom::Node, nil] the constituency of the Grom::Node or nil. - def constituency - seat.nil? ? nil : seat.constituency - end - - # Alias incumbencyHasContactPoint with fallback. - # - # @return [Array, Array] the contact points of the Grom::Node or an empty array. - def contact_points - respond_to?(:incumbencyHasContactPoint) ? incumbencyHasContactPoint : [] - end - - # Alias incumbencyHasMember with fallback. - # - # @return [Grom::Node, nil] the member connected to the Grom::Node or nil. - def member - respond_to?(:incumbencyHasMember) ? incumbencyHasMember.first : nil - end - end - end -end diff --git a/lib/parliament/no_content_response_error.rb b/lib/parliament/no_content_response_error.rb index 8cd946c..8dd357b 100644 --- a/lib/parliament/no_content_response_error.rb +++ b/lib/parliament/no_content_response_error.rb @@ -1,5 +1,5 @@ module Parliament - # An error raised when a 204 status code is returned by Net::HTTP inside of Parliament::Request. + # An error raised when an empty response is returned by Net::HTTP inside of Parliament::Request. # # @since 0.6.0 class NoContentResponseError < Parliament::NetworkError @@ -11,7 +11,7 @@ class NoContentResponseError < Parliament::NetworkError # # response = Net::HTTP.get_response(URI(url)) # - # raise Parliament::NoContentResponseError.new(url, response) if response.code == '204' + # raise Parliament::NoContentResponseError.new(url, response) if response.body.nil? def initialize(url, response) super end diff --git a/lib/parliament/request/base_request.rb b/lib/parliament/request/base_request.rb index 1d78214..0f21c9d 100644 --- a/lib/parliament/request/base_request.rb +++ b/lib/parliament/request/base_request.rb @@ -1,78 +1,89 @@ module Parliament module Request + # Base request object, allowing the user to make a request to an API. + # + # @since 0.7.5 + # + # @attr_reader [String] base_url the base url of our api. (expected: http://example.com - without the trailing slash). + # @attr_reader [Hash] headers the headers being sent in the request. class BaseRequest attr_reader :base_url, :headers - # Creates a new instance of Parliament::Request. + # Creates a new instance of Parliament::Request::BaseRequest. # # An interesting note for #initialize is that setting base_url on the class, or using the environment variable # PARLIAMENT_BASE_URL means you don't need to pass in a base_url. You can pass one anyway to override the # environment variable or class parameter. Similarly, headers can be set by either settings the headers on the class, or passing headers in. # # @example Setting the base_url on the class - # Parliament::Request.base_url = 'http://example.com' + # Parliament::Request::BaseRequest.base_url = 'http://example.com' # - # Parliament::Request.new.base_url #=> 'http://example.com' + # Parliament::Request::BaseRequest.new.base_url #=> 'http://example.com' # # @example Setting the base_url via environment variable # ENV['PARLIAMENT_BASE_URL'] #=> 'http://test.com' # - # Parliament::Request.new.base_url #=> 'http://test.com' + # Parliament::Request::BaseRequest.new.base_url #=> 'http://test.com' # # @example Setting the base_url via a parameter - # Parliament::Request.base_url #=> nil + # Parliament::Request::BaseRequest.base_url #=> nil # ENV['PARLIAMENT_BASE_URL'] #=> nil # - # Parliament::Request.new(base_url: 'http://example.com').base_url #=> 'http://example.com' + # Parliament::Request::BaseRequest.new(base_url: 'http://example.com').base_url #=> 'http://example.com' # # @example Overriding the base_url via a parameter # ENV['PARLIAMENT_BASE_URL'] #=> 'http://test.com' # - # Parliament::Request.new(base_url: 'http://example.com').base_url #=> 'http://example.com' + # Parliament::Request::BaseRequest.new(base_url: 'http://example.com').base_url #=> 'http://example.com' # # @example Setting the headers on the class - # Parliament::Request.headers = { 'Accept' => 'Test' } + # Parliament::Request::BaseRequest.headers = { 'Accept' => 'Test' } # - # Parliament::Request.new.headers #=> '{ 'Accept' => 'Test' } + # Parliament::Request::BaseRequest.new.headers #=> '{ 'Accept' => 'Test' } # # @example Setting the headers via a parameter - # Parliament::Request.headers #=> nil + # Parliament::Request::BaseRequest.headers #=> nil # - # Parliament::Request.new(headers: '{ 'Accept' => 'Test' }).headers #=> { 'Accept' => 'Test' } + # Parliament::Request::BaseRequest.new(headers: '{ 'Accept' => 'Test' }).headers #=> { 'Accept' => 'Test' } # # @example Overriding the headers via a parameter - # Parliament::Request.headers = { 'Accept' => 'Test' } + # Parliament::Request::BaseRequest.headers = { 'Accept' => 'Test' } # - # Parliament::Request.new(headers: '{ 'Accept' => 'Test2' }).headers #=> { 'Accept' => 'Test2' } + # Parliament::Request::BaseRequest.new(headers: '{ 'Accept' => 'Test2' }).headers #=> { 'Accept' => 'Test2' } # # @param [String] base_url the base url of our api. (expected: http://example.com - without the trailing slash). # @param [Hash] headers the headers being sent in the request. - def initialize(base_url: nil, headers: nil, builder: nil) + # @param [Parliament::Builder] builder the builder to use in order to build a response. + # @params [Module] decorators the decorator module to use in order to provide possible alias methods for any objects created by the builder. + def initialize(base_url: nil, headers: nil, builder: nil, decorators: nil) @base_url = base_url || self.class.base_url @headers = headers || self.class.headers || {} @builder = builder || Parliament::Builder::BaseResponseBuilder + @decorators = decorators end - # Using our url built via #method_missing, make a HTTP GET request and process results into a response. + # Makes an HTTP GET request and process results into a response. # # @example HTTP GET request - # request = Parliament::Request.new(base_url: 'http://example.com') + # request = Parliament::Request::BaseRequest.new(base_url: 'http://example.com/people/123' # - # # url: http://example.com/people/123456 - # response = request.people('123456').get #=> # + # # url: http://example.com/people/123 + # + # response = request.get #=> # # # @example HTTP GET request with URI encoded form values - # request = Parliament::Request.new(base_url: 'http://example.com') + # request = Parliament::Request.new(base_url: 'http://example.com/people/current') # # # url: http://example.com/people/current?limit=10&page=4&lang=en-gb - # response = request.people.current.get({ limit: 10, page: 4, lang: 'en-gb' }) #=> # + # + # response = request.get({ limit: 10, page: 4, lang: 'en-gb' }) #=> # # # @raise [Parliament::ServerError] when the server responds with a 5xx status code. # @raise [Parliament::ClientError] when the server responds with a 4xx status code. - # @raise [Parliament::NoContentResponseError] when the server responds with a 204 status code. + # @raise [Parliament::NoContentResponseError] when the response body is empty. # # @param [Hash] params (optional) additional URI encoded form values to be added to the URI. # - # @return [Parliament::Response] a Parliament::Response object containing all of the nodes returned from the URL. + # @return [Parliament::Response::BaseResponse] a Parliament::Response::BaseResponse object containing all of the data returned from the URL. def get(params: nil) endpoint_uri = URI.parse(query_url) endpoint_uri.query = URI.encode_www_form(params.to_a) unless params.nil? @@ -101,7 +112,7 @@ class << self end def build_response(net_response) - @builder.new(net_response).build + @builder.new(response: net_response, decorators: @decorators).build end def query_url @@ -122,7 +133,7 @@ def add_headers(request) def handle_errors(response) case response when Net::HTTPSuccess # 2xx Status - exception_class = Parliament::NoContentResponseError if response.code == '204' + exception_class = Parliament::NoContentResponseError if response.body.nil? when Net::HTTPClientError # 4xx Status exception_class = Parliament::ClientError when Net::HTTPServerError # 5xx Status diff --git a/lib/parliament/request/url_request.rb b/lib/parliament/request/url_request.rb index 9dd12d8..b9b911d 100644 --- a/lib/parliament/request/url_request.rb +++ b/lib/parliament/request/url_request.rb @@ -1,7 +1,25 @@ module Parliament module Request + # URL request object, allowing the user to build a URL to make a request to an API. + # + # @since 0.7.5 + # + # @attr_reader [String] base_url the endpoint for our API which we will build our requests on. (expected: http://example.com - without the trailing slash). + # @attr_reader [Hash] headers the headers being sent in the request. class UrlRequest < Parliament::Request::BaseRequest - def initialize(base_url: nil, headers: nil, builder: nil) + # Creates a new instance of Parliament::Request::UrlRequest. + # + # @see Parliament::Request::BaseRequest#initialize. + # + # @param [String] base_url the base url of our api. (expected: http://example.com - without the trailing slash). + # @param [Hash] headers the headers being sent in the request. + # @param [Parliament::Builder] builder the builder to use in order to build a response. + # @param [Module] decorators the decorator module to use in order to provide possible alias methods for any objects created by the builder. + # @example Passing headers + # + # request = Parliament::Request::UrlRequest.new(base_url: 'http://example.com', headers: { 'Access-Token' => '12345678' }) + # This will create a request with the Access-Token set to 12345678. + def initialize(base_url: nil, headers: nil, builder: nil, decorators: nil) @endpoint_parts = [] base_url ||= ENV['PARLIAMENT_BASE_URL'] @@ -11,19 +29,19 @@ def initialize(base_url: nil, headers: nil, builder: nil) # Overrides ruby's method_missing to allow creation of URLs through method calls. # # @example Adding a simple URL part - # request = Parliament::Request.new(base_url: 'http://example.com') + # request = Parliament::Request::UrlRequest.new(base_url: 'http://example.com') # # # url: http://example.com/people # request.people # # @example Adding a simple URL part with parameters - # request = Parliament::Request.new(base_url: 'http://example.com') + # request = Parliament::Request::UrlRequest.new(base_url: 'http://example.com') # # # url: http://example.com/people/123456 # request.people('123456') # # @example Chaining URL parts and using hyphens - # request = Parliament::Request.new(base_url: 'http://example.com') + # request = Parliament::Request::UrlRequest.new(base_url: 'http://example.com') # # # url: http://example.com/people/123456/foo/bar/hello-world/7890 # request.people('123456').foo.bar('hello-world', '7890') @@ -32,7 +50,7 @@ def initialize(base_url: nil, headers: nil, builder: nil) # @param [Array] params parameters passed to the specified method (url part). # @param [Block] block additional block (kept for compatibility with method_missing API). # - # @return [Parliament::Request] self. + # @return [Parliament::Request::UrlRequest] self (this is to allow method chaining). def method_missing(method, *params, &block) @endpoint_parts << method.to_s @endpoint_parts << params diff --git a/lib/parliament/response.rb b/lib/parliament/response.rb index f0fcfef..01972e1 100644 --- a/lib/parliament/response.rb +++ b/lib/parliament/response.rb @@ -1,131 +1,7 @@ -require 'forwardable' - module Parliament - # API response object that wraps an Array of Grom::Node objects with common helper methods. - # - # Delegates a number of common methods to the array of Grom::Nodes including, but not limited to, :size, :each, :map, :count etc. - # - # @since 0.1.0 - # - # @attr_reader [Array] nodes Graph nodes. - class Response - include Enumerable - extend Forwardable - attr_reader :nodes - def_delegators :@nodes, :size, :each, :select, :map, :select!, :map!, :count, :length, :[], :empty? - - # @param [Array] nodes An array of nodes the response should wrap - def initialize(nodes) - @nodes = nodes - end - - # Given our array of Grom::Nodes, filter them into arrays of 'types' of nodes. - # - # Note: this method assumes all of your nodes include a #type attribute or are blank nodes. - # - # @since 0.2.0 - # - # @example Filtering for a single type - # node_1 = Grom::Node.new - # node_1.instance_variable_set(:type, 'type_1') - # node_2 = Grom::Node.new - # node_2.instance_variable_set(:type, 'type_3') - # node_3 = Grom::Node.new - # node_3.instance_variable_set(:type, 'type_1') - # node_4 = Grom::Node.new - # node_4.instance_variable_set(:type, 'type_2') - # nodes = [node_1, node_2, node_3, node_4] - # - # response = Parliament::Response.new(nodes) - # response.filter('type_2') #=> [#] - # - # @example Filtering for multiple types - # node_1 = Grom::Node.new - # node_1.instance_variable_set(:type, 'type_1') - # node_2 = Grom::Node.new - # node_2.instance_variable_set(:type, 'type_3') - # node_3 = Grom::Node.new - # node_3.instance_variable_set(:type, 'type_1') - # node_4 = Grom::Node.new - # node_4.instance_variable_set(:type, 'type_2') - # nodes = [node_1, node_2, node_3, node_4] - # - # response = Parliament::Response.new(nodes) - # response.filter('type_2', 'type_1') #=> [[#], [#, #]] - # - # # Also consider - # type_2, type_1 = response.filter('type_2', 'type_1') - # type_2 #=> [#] - # type_1 #=> [#, #] - # - # @example Filtering blank nodes - # node_1 = Grom::Node.new - # node_1.instance_variable_set(:type, 'type_1') - # node_2 = Grom::Node.new - # node_3 = Grom::Node.new - # node_3.instance_variable_set(:type, 'type_1') - # nodes = [node_1, node_2, node_3] - # - # response = Parliament::Response.new(nodes) - # response.filter(Grom::Node::BLANK) #=> [#] - # - # @param [Array] types An array of type strings that you are looking for. - # @return [Array || Array<*Array>] If you pass one type, this returns an Array of Grom::Node objects. If you pass multiple, it returns an array, of arrays of Grom::Node objects. - def filter(*types) - filtered_objects = Array.new(types.size) { [] } - - unless types.empty? - @nodes.each do |node| - type_index = node.blank? ? types.index(Grom::Node::BLANK) : types.index(node.type) - - filtered_objects[type_index] << node unless type_index.nil? - end - end - - result = build_responses(filtered_objects) - - types.size == 1 ? result.first : result - end - - # Sort the Parliament::Response nodes in ascending order by a set of attributes on each node. - # - # @see Parliament::Utils.sort_by - # - # @since 0.5.0 - # - # @param [Array] parameters Attributes to sort on - left to right. - # @return [Array] A sorted array of nodes. - def sort_by(*parameters) - Parliament::Utils.sort_by({ - list: @nodes, - parameters: parameters - }) - end - - # Sort the Parliament::Response nodes in descending order by a set of attributes on each node. - # - # @see Parliament::Utils.reverse_sort_by - # - # @since 0.5.0 - # - # @param [Array] parameters Attributes to sort on - left to right. - # @return [Array] A sorted array of nodes. - def reverse_sort_by(*parameters) - Parliament::Utils.reverse_sort_by({ - list: @nodes, - parameters: parameters - }) - end - - private - - def build_responses(filtered_objects) - result = [] - - filtered_objects.each do |objects| - result << Parliament::Response.new(objects) - end - result - end + # Namespace for classes and modules that handle http responses. + # @since 0.7.5 + module Response + require 'parliament/response/base_response' end end diff --git a/lib/parliament/response/base_response.rb b/lib/parliament/response/base_response.rb new file mode 100644 index 0000000..d3f277a --- /dev/null +++ b/lib/parliament/response/base_response.rb @@ -0,0 +1,18 @@ +module Parliament + module Response + # An API response built from API data. + # + # @since 0.7.5. + # @attr_reader [HTTPResponse] response the HTTPResponse from the API. + class BaseResponse + attr_reader :response + + # Creates a Parliament::BaseResponse object. + # + # @param [HTTPResponse] response an HTTPResponse from the API. + def initialize(response) + @response = response + end + end + end +end diff --git a/lib/parliament/utils.rb b/lib/parliament/utils.rb deleted file mode 100644 index c0ab7f3..0000000 --- a/lib/parliament/utils.rb +++ /dev/null @@ -1,135 +0,0 @@ -module Parliament - # Namespace for helper methods used with parliament-ruby. - # - # @since 0.6.0 - module Utils - # Sort an Array of Objects in ascending order. The major difference between this implementation of sort_by and the - # standard one is that our implementation includes objects that return nil for our parameter values. - # - # @see Parliament::Utils.reverse_sort_by - # - # @example Sorting a list of objects by date - # response = parliament.people('123').get.filter('http://id.ukpds.org/schema/Person') - # - # objects = response.first.incumbencies - # - # args = { - # list: objects, - # parameters: [:endDate], - # prepend_rejected: false - # } - # - # sorted_list = Parliament::Util.sort_by(args) - # - # sorted_list.each { |incumbency| puts incumbency.respond_to?(:endDate) ? incumbency.endDate : 'Current' } - # # http://id.ukpds.org/1121 - 1981-07-31 - # # http://id.ukpds.org/5678 - 1991-03-15 - # # http://id.ukpds.org/1234 - 1997-01-01 - # # http://id.ukpds.org/9101 - 2011-09-04 - # # http://id.ukpds.org/3141 - Current - # - # @param [Hash] args a hash of arguments. - # @option args [Array] :list the 'list' which we are sorting. - # @option args [Array] :parameters an array of parameters we are sorting by. - # @option args [Boolean] :prepend_rejected (true) should objects that do not respond to our parameters be prepended? - # - # @return [Array] a sorted array of objects using the args passed in. - def self.sort_by(args) - rejected = [] - args = sort_defaults.merge(args) - list = args[:list].dup - parameters = args[:parameters] - - list, rejected = prune_list(list, rejected, parameters) - - list = sort_list(list, parameters) - - # Any rejected (nil) values will be added to the start of the result unless specified otherwise - args[:prepend_rejected] ? rejected.concat(list) : list.concat(rejected) - end - - # Sort an Array of Objects in descending order. Largely, this implementation runs Parliament::Utils.sort_by and - # calls reverse! on the result. - # - # @see Parliament::Utils.sort_by - # - # @example Sorting a list of objects by date - # response = parliament.people('123').get.filter('http://id.ukpds.org/schema/Person') - # - # objects = response.first.incumbencies - # - # args = { - # list: objects, - # parameters: [:endDate], - # prepend_rejected: false - # } - # - # sorted_list = Parliament::Util.reverse_sort_by(args) - # - # sorted_list.each { |incumbency| puts incumbency.respond_to?(:endDate) ? incumbency.endDate : 'Current' } - # # http://id.ukpds.org/3141 - Current - # # http://id.ukpds.org/9101 - 2011-09-04 - # # http://id.ukpds.org/1234 - 1997-01-01 - # # http://id.ukpds.org/5678 - 1991-03-15 - # # http://id.ukpds.org/1121 - 1981-07-31 - # - # @param [Hash] args a hash of arguments. - # @option args [Array] :list the 'list' which we are sorting. - # @option args [Array] :parameters an array of parameters we are sorting by. - # @option args [Boolean] :prepend_rejected (true) should objects that do not respond to our parameters be prepended? - # - # @return [Array] a sorted array of objects using the args passed in. - def self.reverse_sort_by(args) - Parliament::Utils.sort_by(args).reverse! - end - - # Default arguments hash for #sort_by and #reverse_sort_by. - # - # @see Parliament::Utils.sort_by - # @see Parliament::Utils.reverse_sort_by - # - # @return [Hash] default arguments used in sorting methods. - def self.sort_defaults - { prepend_rejected: true } - end - - # @!method self.prune_list(list, rejected, parameters) - # Prune all objects that do not respond to a given array of parameters. - # - # @private - # @!scope class - # @!visibility private - # - # @param [Array] list the 'list' of objects we are pruning from. - # @param [Array] rejected the objects we have pruned from list. - # @param [Array] parameters an array of parameters we are checking. - # - # @return [Array, Array>] an array containing first, the pruned list and secondly, the rejected list. - private_class_method def self.prune_list(list, rejected, parameters) - list.delete_if do |object| - rejected << object unless parameters.all? { |param| !object.send(param).nil? if object.respond_to?(param) } - end - - [list, rejected] - end - - # @!method self.sort_list(list, parameters) - # Sort a given list of objects by a list of parameters. - # - # @private - # @!scope class - # @!visibility private - # - # @param [Array] list the 'list' of objects we are pruning from. - # @param [Array] parameters an array of parameters we are checking. - # - # @return [Array] our sorted list. - private_class_method def self.sort_list(list, parameters) - list.sort_by! do |object| - parameters.map do |param| - object.send(param).is_a?(String) ? I18n.transliterate(object.send(param)).downcase : object.send(param) - end - end - end - end -end diff --git a/lib/parliament/version.rb b/lib/parliament/version.rb index 7e25613..ecc334d 100644 --- a/lib/parliament/version.rb +++ b/lib/parliament/version.rb @@ -1,3 +1,3 @@ module Parliament - VERSION = '0.7.4'.freeze + VERSION = '0.7.6'.freeze end diff --git a/parliament-ruby.gemspec b/parliament-ruby.gemspec index 6763537..03c67ce 100644 --- a/parliament-ruby.gemspec +++ b/parliament-ruby.gemspec @@ -20,8 +20,6 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ['lib'] - spec.add_dependency 'grom', '~> 0.3.6' - spec.add_development_dependency 'bundler', '~> 1.13' spec.add_development_dependency 'rake', '~> 10.0' spec.add_development_dependency 'rspec', '~> 3.0' @@ -29,4 +27,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'simplecov', '~> 0.12' spec.add_development_dependency 'vcr', '~> 3.0' spec.add_development_dependency 'webmock', '~> 2.3' + spec.add_development_dependency 'parliament-grom-decorators', '~> 0.1' end diff --git a/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/_assign_decorator/decorates_nested_objects.yml b/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/_assign_decorator/decorates_nested_objects.yml deleted file mode 100644 index 23a1475..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/_assign_decorator/decorates_nested_objects.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"34264810604fc0dad2923a98d02fad24" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - e463a84a-c753-471f-a90f-659ab05f04a7 - X-Runtime: - - '0.964436' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Fri, 27 Jan 2017 12:24:10 GMT -recorded_with: VCR 3.0.3 \ No newline at end of file diff --git a/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/_assign_decorator/returns_an_object_which_has_been_decorated_if_a_decorator_is_defined.yml b/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/_assign_decorator/returns_an_object_which_has_been_decorated_if_a_decorator_is_defined.yml deleted file mode 100644 index e6a7b25..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/_assign_decorator/returns_an_object_which_has_been_decorated_if_a_decorator_is_defined.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"34264810604fc0dad2923a98d02fad24" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - e463a84a-c753-471f-a90f-659ab05f04a7 - X-Runtime: - - '0.964436' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Fri, 27 Jan 2017 12:24:10 GMT -recorded_with: VCR 3.0. \ No newline at end of file diff --git a/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/build/returns_19_objects.yml b/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/build/returns_19_objects.yml deleted file mode 100644 index 819e94e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/build/returns_19_objects.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - - application/n-triples - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"b8d4e720572247c3ab4b467e69aebc73" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 56af4dc5-5762-450e-bcfe-e4137aca6ed6 - X-Runtime: - - '17.531855' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Tue, 04 Apr 2017 14:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/build/returns_3_objects.yml b/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/build/returns_3_objects.yml deleted file mode 100644 index 819e94e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/build/returns_3_objects.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - - application/n-triples - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"b8d4e720572247c3ab4b467e69aebc73" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 56af4dc5-5762-450e-bcfe-e4137aca6ed6 - X-Runtime: - - '17.531855' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Tue, 04 Apr 2017 14:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/build/returns_a_Parliament_Response_object.yml b/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/build/returns_a_Parliament_Response_object.yml deleted file mode 100644 index a570918..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/build/returns_a_Parliament_Response_object.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - - application/n-triples - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"b8d4e720572247c3ab4b467e69aebc73" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 56af4dc5-5762-450e-bcfe-e4137aca6ed6 - X-Runtime: - - '17.531855' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Tue, 04 Apr 2017 14:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/build/returns_an_array_of_Grom_Node_objects.yml b/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/build/returns_an_array_of_Grom_Node_objects.yml deleted file mode 100644 index 819e94e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Builder_NTripleResponseBuilder/build/returns_an_array_of_Grom_Node_objects.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - - application/n-triples - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"b8d4e720572247c3ab4b467e69aebc73" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 56af4dc5-5762-450e-bcfe-e4137aca6ed6 - X-Runtime: - - '17.531855' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Tue, 04 Apr 2017 14:20:42 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_latitude/constituency_has_a_latitude/returns_the_latitude_of_the_constituency_area.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_latitude/constituency_has_a_latitude/returns_the_latitude_of_the_constituency_area.yml deleted file mode 100644 index 29fa9fb..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_latitude/constituency_has_a_latitude/returns_the_latitude_of_the_constituency_area.yml +++ /dev/null @@ -1,83 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_latitude/constituency_has_no_latitude/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_latitude/constituency_has_no_latitude/returns_an_empty_string.yml deleted file mode 100644 index 29fa9fb..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_latitude/constituency_has_no_latitude/returns_an_empty_string.yml +++ /dev/null @@ -1,83 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_longitude/constituency_has_a_longitude/returns_the_longitude_of_the_constituency_area.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_longitude/constituency_has_a_longitude/returns_the_longitude_of_the_constituency_area.yml deleted file mode 100644 index 29fa9fb..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_longitude/constituency_has_a_longitude/returns_the_longitude_of_the_constituency_area.yml +++ /dev/null @@ -1,83 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_longitude/constituency_has_no_longitude/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_longitude/constituency_has_no_longitude/returns_an_empty_string.yml deleted file mode 100644 index 29fa9fb..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_longitude/constituency_has_no_longitude/returns_an_empty_string.yml +++ /dev/null @@ -1,83 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_polygon/constituency_has_a_polygon/returns_the_polygon_of_the_constituency_area.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_polygon/constituency_has_a_polygon/returns_the_polygon_of_the_constituency_area.yml deleted file mode 100644 index 29fa9fb..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_polygon/constituency_has_a_polygon/returns_the_polygon_of_the_constituency_area.yml +++ /dev/null @@ -1,83 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_polygon/constituency_has_no_polygon/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_polygon/constituency_has_no_polygon/returns_an_empty_string.yml deleted file mode 100644 index 29fa9fb..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyArea/_polygon/constituency_has_no_polygon/returns_an_empty_string.yml +++ /dev/null @@ -1,83 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_area/constituency_has_an_area/returns_the_area.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_area/constituency_has_an_area/returns_the_area.yml deleted file mode 100644 index ab4fb2d..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_area/constituency_has_an_area/returns_the_area.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_area/constituency_has_no_seat_incumbencies/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_area/constituency_has_no_seat_incumbencies/returns_nil.yml deleted file mode 100644 index ab4fb2d..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_area/constituency_has_no_seat_incumbencies/returns_nil.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_contact_points/constituency_has_contact_points/returns_an_array_of_contact_points.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_contact_points/constituency_has_contact_points/returns_an_array_of_contact_points.yml deleted file mode 100644 index ba3d76f..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_contact_points/constituency_has_contact_points/returns_an_array_of_contact_points.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - a3cbef4b-f7e6-4111-8610-028cc155ce09 - X-Runtime: - - '0.121937' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - . - "North Devon" . - . - . - . - . - . - "example@parliament.uk" . - "020 1234 5678" . - . - . - "SW1A 0AA" . - "House of Commons" . - "London" . - http_version: - recorded_at: Wed, 08 Feb 2017 10:25:53 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_contact_points/constituency_has_no_contact_points/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_contact_points/constituency_has_no_contact_points/returns_an_empty_array.yml deleted file mode 100644 index 69836e2..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_contact_points/constituency_has_no_contact_points/returns_an_empty_array.yml +++ /dev/null @@ -1,60 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - a3cbef4b-f7e6-4111-8610-028cc155ce09 - X-Runtime: - - '0.121937' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - . - "North Devon" . - . - . - . - . - "example@parliament.uk" . - "020 1234 5678" . - . - . - "SW1A 0AA" . - "House of Commons" . - "London" . - http_version: - recorded_at: Wed, 08 Feb 2017 10:25:53 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_non_current_constituency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_non_current_constituency.yml deleted file mode 100644 index 4b47a7a..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_non_current_constituency.yml +++ /dev/null @@ -1,93 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/1921fc4a-6867-48fa-a4f4-6df05be005ce/constituencies - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"2cedbe97cb4ce9e93983a2def1ebfd17" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - cfed94ae-c3a5-4925-8476-ad42862d14d7 - X-Runtime: - - '0.083618' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - "Hackney North and Stoke Newington" . - "1983-06-09"^^ . - "1997-05-01"^^ . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - "Hackney North and Stoke Newington" . - "1997-05-01"^^ . - "2010-05-06"^^ . - . - . - . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - "Hackney North and Stoke Newington" . - "2010-05-06"^^ . - . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - "2015-05-07"^^ . - http_version: - recorded_at: Tue, 07 Mar 2017 14:27:44 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_end_date/constituency_has_an_end_date/returns_the_end_date_of_the_constituency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_end_date/constituency_has_an_end_date/returns_the_end_date_of_the_constituency.yml deleted file mode 100644 index ab4fb2d..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_end_date/constituency_has_an_end_date/returns_the_end_date_of_the_constituency.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_end_date/constituency_has_no_end_date/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_end_date/constituency_has_no_end_date/returns_nil.yml deleted file mode 100644 index ab4fb2d..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_end_date/constituency_has_no_end_date/returns_nil.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_members/constituency_has_members/returns_an_array_of_members.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_members/constituency_has_members/returns_an_array_of_members.yml deleted file mode 100644 index 7ada487..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_members/constituency_has_members/returns_an_array_of_members.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_members/constituency_has_no_seat_incumbencies/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_members/constituency_has_no_seat_incumbencies/returns_an_empty_array.yml deleted file mode 100644 index ab4fb2d..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_members/constituency_has_no_seat_incumbencies/returns_an_empty_array.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_name/constituency_has_a_name/returns_the_name_of_the_constituency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_name/constituency_has_a_name/returns_the_name_of_the_constituency.yml deleted file mode 100644 index ab4fb2d..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_name/constituency_has_a_name/returns_the_name_of_the_constituency.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_name/constituency_has_no_name/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_name/constituency_has_no_name/returns_an_empty_string.yml deleted file mode 100644 index ab4fb2d..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_name/constituency_has_no_name/returns_an_empty_string.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_seat_incumbencies/constituency_has_no_seat_incumbencies/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_seat_incumbencies/constituency_has_no_seat_incumbencies/returns_an_empty_array.yml deleted file mode 100644 index ab4fb2d..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_seat_incumbencies/constituency_has_no_seat_incumbencies/returns_an_empty_array.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_seat_incumbencies/constituency_has_seat_incumbencies/returns_an_array_of_seat_incumbencies.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_seat_incumbencies/constituency_has_seat_incumbencies/returns_an_array_of_seat_incumbencies.yml deleted file mode 100644 index ab4fb2d..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_seat_incumbencies/constituency_has_seat_incumbencies/returns_an_array_of_seat_incumbencies.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_seats/constituency_has_house_seats/returns_an_array_of_house_seats.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_seats/constituency_has_house_seats/returns_an_array_of_house_seats.yml deleted file mode 100644 index ab4fb2d..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_seats/constituency_has_house_seats/returns_an_array_of_house_seats.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_seats/constituency_has_no_house_seats/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_seats/constituency_has_no_house_seats/returns_an_empty_array.yml deleted file mode 100644 index ab4fb2d..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_seats/constituency_has_no_house_seats/returns_an_empty_array.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Person 1" . - "Person 1" . - . - . - . - "2016-05-05"^^ . - . - "Person 2" . - "Person 2" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "Person 3" . - "Person 3" . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_start_date/constituency_has_a_start_date/returns_the_start_date_of_the_constituency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_start_date/constituency_has_a_start_date/returns_the_start_date_of_the_constituency.yml deleted file mode 100644 index 98b5e00..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_start_date/constituency_has_a_start_date/returns_the_start_date_of_the_constituency.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Harry" . - "Harpham" . - . - . - . - "2016-05-05"^^ . - . - "Gillian" . - "Furniss" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "David" . - "Blunkett" . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_start_date/constituency_has_no_start_date/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_start_date/constituency_has_no_start_date/returns_nil.yml deleted file mode 100644 index 98b5e00..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ConstituencyGroup/_start_date/constituency_has_no_start_date/returns_nil.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/a2ce856d-ba0a-4508-9dd0-62feb54d3894 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"a9577dd5cd3d2f4c038b1264b9edd4bd" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24e16490-7310-4a95-9435-81d037e39dcd - X-Runtime: - - '0.098894' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "2010-05-06"^^ . - "2011-05-06"^^ . - "Sheffield, Brightside and Hillsborough" . - "E14000921" . - . - . - "53.4156316801"^^ . - "-1.46711981738"^^ . - "Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))"^^ . - . - . - . - . - . - "2016-02-04"^^ . - "2015-05-07"^^ . - . - "Harry" . - "Harpham" . - . - . - . - "2016-05-05"^^ . - . - "Gillian" . - "Furniss" . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - "David" . - "Blunkett" . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_email/Grom_Node_has_all_the_required_objects/returns_the_email_for_a_Grom_Node_object_of_type_ContactPoint.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_email/Grom_Node_has_all_the_required_objects/returns_the_email_for_a_Grom_Node_object_of_type_ContactPoint.yml deleted file mode 100644 index 2129607..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_email/Grom_Node_has_all_the_required_objects/returns_the_email_for_a_Grom_Node_object_of_type_ContactPoint.yml +++ /dev/null @@ -1,72 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"5d079f68e98b1acf38f8575e43aceaff" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4104794f-eb5a-4bcc-aa00-c2bd723ff331 - X-Runtime: - - '0.045940' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1938-12-08"^^ . - "person" . - "person" . - . - . - . - . - . - . - "M" . - . - "person@parliament.uk" . - "123456789" . - "123456789" . - . - . - "Mannington Hall" . - "Norwich" . - "NR11 7BB" . - . - "Crossbench" . - . - "1989-09-19"^^ . - . - . - http_version: - recorded_at: Thu, 09 Feb 2017 14:43:03 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_email/Grom_Node_has_no_email/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_email/Grom_Node_has_no_email/returns_an_empty_string.yml deleted file mode 100644 index 2129607..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_email/Grom_Node_has_no_email/returns_an_empty_string.yml +++ /dev/null @@ -1,72 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"5d079f68e98b1acf38f8575e43aceaff" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4104794f-eb5a-4bcc-aa00-c2bd723ff331 - X-Runtime: - - '0.045940' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1938-12-08"^^ . - "person" . - "person" . - . - . - . - . - . - . - "M" . - . - "person@parliament.uk" . - "123456789" . - "123456789" . - . - . - "Mannington Hall" . - "Norwich" . - "NR11 7BB" . - . - "Crossbench" . - . - "1989-09-19"^^ . - . - . - http_version: - recorded_at: Thu, 09 Feb 2017 14:43:03 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_fax_number/Grom_Node_has_all_the_required_objects/returns_the_fax_number_for_a_Grom_Node_object_of_type_ContactPoint.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_fax_number/Grom_Node_has_all_the_required_objects/returns_the_fax_number_for_a_Grom_Node_object_of_type_ContactPoint.yml deleted file mode 100644 index 2129607..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_fax_number/Grom_Node_has_all_the_required_objects/returns_the_fax_number_for_a_Grom_Node_object_of_type_ContactPoint.yml +++ /dev/null @@ -1,72 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"5d079f68e98b1acf38f8575e43aceaff" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4104794f-eb5a-4bcc-aa00-c2bd723ff331 - X-Runtime: - - '0.045940' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1938-12-08"^^ . - "person" . - "person" . - . - . - . - . - . - . - "M" . - . - "person@parliament.uk" . - "123456789" . - "123456789" . - . - . - "Mannington Hall" . - "Norwich" . - "NR11 7BB" . - . - "Crossbench" . - . - "1989-09-19"^^ . - . - . - http_version: - recorded_at: Thu, 09 Feb 2017 14:43:03 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_fax_number/Grom_Node_has_no_fax_number/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_fax_number/Grom_Node_has_no_fax_number/returns_an_empty_string.yml deleted file mode 100644 index 2129607..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_fax_number/Grom_Node_has_no_fax_number/returns_an_empty_string.yml +++ /dev/null @@ -1,72 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"5d079f68e98b1acf38f8575e43aceaff" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4104794f-eb5a-4bcc-aa00-c2bd723ff331 - X-Runtime: - - '0.045940' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1938-12-08"^^ . - "person" . - "person" . - . - . - . - . - . - . - "M" . - . - "person@parliament.uk" . - "123456789" . - "123456789" . - . - . - "Mannington Hall" . - "Norwich" . - "NR11 7BB" . - . - "Crossbench" . - . - "1989-09-19"^^ . - . - . - http_version: - recorded_at: Thu, 09 Feb 2017 14:43:03 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_incumbency/Grom_Node_has_all_the_required_objects/returns_the_object_of_type_Incumbency_for_a_Grom_Node_object_of_type_ContactPoint.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_incumbency/Grom_Node_has_all_the_required_objects/returns_the_object_of_type_Incumbency_for_a_Grom_Node_object_of_type_ContactPoint.yml deleted file mode 100644 index 01c8d46..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_incumbency/Grom_Node_has_all_the_required_objects/returns_the_object_of_type_Incumbency_for_a_Grom_Node_object_of_type_ContactPoint.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d0939f3d6df9c81b9cbcd645f74a474" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 7973125c-1bbb-4966-a801-384f6f37d5aa - X-Runtime: - - '0.388649' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - . - "North Devon" . - . - . - . - . - . - "example@parliament.uk" . - "020 1234 5678" . - . - . - "SW1A 0AA" . - "House of Commons" . - "London" . - http_version: - recorded_at: Thu, 02 Mar 2017 12:38:32 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_incumbency/Grom_Node_has_no_incumbency_associated_with_it/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_incumbency/Grom_Node_has_no_incumbency_associated_with_it/returns_nil.yml deleted file mode 100644 index bc0c3c3..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_incumbency/Grom_Node_has_no_incumbency_associated_with_it/returns_nil.yml +++ /dev/null @@ -1,60 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d0939f3d6df9c81b9cbcd645f74a474" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - e35cea6c-9733-47cb-9f84-2fda9d7c740e - X-Runtime: - - '0.344499' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - . - "North Devon" . - . - . - . - . - "example@parliament.uk" . - "020 1234 5678" . - . - . - "SW1A 0AA" . - "House of Commons" . - "London" . - http_version: - recorded_at: Thu, 02 Mar 2017 12:38:32 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_person/Grom_Node_has_all_the_required_objects/returns_the_object_of_type_Person_for_a_Grom_Node_object_of_type_ContactPoint.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_person/Grom_Node_has_all_the_required_objects/returns_the_object_of_type_Person_for_a_Grom_Node_object_of_type_ContactPoint.yml deleted file mode 100644 index f56c828..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_person/Grom_Node_has_all_the_required_objects/returns_the_object_of_type_Person_for_a_Grom_Node_object_of_type_ContactPoint.yml +++ /dev/null @@ -1,74 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"5d079f68e98b1acf38f8575e43aceaff" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - c2565f7d-7bf0-4f0c-96a9-4f732d606b64 - X-Runtime: - - '0.055944' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1938-12-08"^^ . - "given" . - "family" . - . - . - . - . - . - . - "M" . - . - "person@parliament.uk" . - . - "01263 587763" . - "123456789" . - . - . - "Mannington Hall" . - "Norwich" . - "NR11 7BB" . - . - "Crossbench" . - . - "1989-09-19"^^ . - . - . - - http_version: - recorded_at: Wed, 08 Feb 2017 15:22:22 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_person/Grom_Node_has_no_person_associated_with_it/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_person/Grom_Node_has_no_person_associated_with_it/returns_an_empty_string.yml deleted file mode 100644 index f56c828..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_person/Grom_Node_has_no_person_associated_with_it/returns_an_empty_string.yml +++ /dev/null @@ -1,74 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"5d079f68e98b1acf38f8575e43aceaff" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - c2565f7d-7bf0-4f0c-96a9-4f732d606b64 - X-Runtime: - - '0.055944' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1938-12-08"^^ . - "given" . - "family" . - . - . - . - . - . - . - "M" . - . - "person@parliament.uk" . - . - "01263 587763" . - "123456789" . - . - . - "Mannington Hall" . - "Norwich" . - "NR11 7BB" . - . - "Crossbench" . - . - "1989-09-19"^^ . - . - . - - http_version: - recorded_at: Wed, 08 Feb 2017 15:22:22 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_phone_number/Grom_Node_has_all_the_required_objects/returns_the_phone_number_for_a_Grom_Node_object_of_type_ContactPoint.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_phone_number/Grom_Node_has_all_the_required_objects/returns_the_phone_number_for_a_Grom_Node_object_of_type_ContactPoint.yml deleted file mode 100644 index 2129607..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_phone_number/Grom_Node_has_all_the_required_objects/returns_the_phone_number_for_a_Grom_Node_object_of_type_ContactPoint.yml +++ /dev/null @@ -1,72 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"5d079f68e98b1acf38f8575e43aceaff" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4104794f-eb5a-4bcc-aa00-c2bd723ff331 - X-Runtime: - - '0.045940' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1938-12-08"^^ . - "person" . - "person" . - . - . - . - . - . - . - "M" . - . - "person@parliament.uk" . - "123456789" . - "123456789" . - . - . - "Mannington Hall" . - "Norwich" . - "NR11 7BB" . - . - "Crossbench" . - . - "1989-09-19"^^ . - . - . - http_version: - recorded_at: Thu, 09 Feb 2017 14:43:03 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_phone_number/Grom_Node_has_no_phone_number/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_phone_number/Grom_Node_has_no_phone_number/returns_an_empty_string.yml deleted file mode 100644 index 2129607..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_phone_number/Grom_Node_has_no_phone_number/returns_an_empty_string.yml +++ /dev/null @@ -1,72 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"5d079f68e98b1acf38f8575e43aceaff" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4104794f-eb5a-4bcc-aa00-c2bd723ff331 - X-Runtime: - - '0.045940' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1938-12-08"^^ . - "person" . - "person" . - . - . - . - . - . - . - "M" . - . - "person@parliament.uk" . - "123456789" . - "123456789" . - . - . - "Mannington Hall" . - "Norwich" . - "NR11 7BB" . - . - "Crossbench" . - . - "1989-09-19"^^ . - . - . - http_version: - recorded_at: Thu, 09 Feb 2017 14:43:03 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_postal_addresses/Grom_Node_has_all_the_required_objects/returns_the_postal_addresses_for_a_Grom_Node_object_of_type_ContactPoint.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_postal_addresses/Grom_Node_has_all_the_required_objects/returns_the_postal_addresses_for_a_Grom_Node_object_of_type_ContactPoint.yml deleted file mode 100644 index 6671b78..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_postal_addresses/Grom_Node_has_all_the_required_objects/returns_the_postal_addresses_for_a_Grom_Node_object_of_type_ContactPoint.yml +++ /dev/null @@ -1,70 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"5d079f68e98b1acf38f8575e43aceaff" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 2314af10-bb8c-47e1-a973-3f4b41d5ccc9 - X-Runtime: - - '0.042646' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1950-10-08"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "M" . - . - "example@parliament.uk" . - "01234 567890" . - . - . - "123 Test Lane" . - "Example" . - "AB12 3CD" . - . - "Crossbench" . - . - "1989-09-19"^^ . - . - http_version: - recorded_at: Tue, 07 Feb 2017 11:19:31 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_postal_addresses/Grom_Node_has_no_postal_addresses/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_postal_addresses/Grom_Node_has_no_postal_addresses/returns_an_empty_array.yml deleted file mode 100644 index 7763736..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_ContactPoint/_postal_addresses/Grom_Node_has_no_postal_addresses/returns_an_empty_array.yml +++ /dev/null @@ -1,71 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"5d079f68e98b1acf38f8575e43aceaff" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 2314af10-bb8c-47e1-a973-3f4b41d5ccc9 - X-Runtime: - - '0.042646' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1950-10-08"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "M" . - . - "example@parliament.uk" . - "01234 567890" . - . - . - "123 Test Lane" . - "Example" . - "AB12 3CD" . - . - "Crossbench" . - . - "1989-09-19"^^ . - . - . - http_version: - recorded_at: Tue, 07 Feb 2017 11:19:31 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Gender/_name/Grom_Node_has_all_the_required_objects/returns_the_name_for_a_Grom_Node_object_of_type_Gender.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Gender/_name/Grom_Node_has_all_the_required_objects/returns_the_name_for_a_Grom_Node_object_of_type_Gender.yml deleted file mode 100644 index 83c5b47..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Gender/_name/Grom_Node_has_all_the_required_objects/returns_the_name_for_a_Grom_Node_object_of_type_Gender.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Gender/_name/Grom_Node_has_no_name/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Gender/_name/Grom_Node_has_no_name/returns_an_empty_string.yml deleted file mode 100644 index bff0c07..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Gender/_name/Grom_Node_has_no_name/returns_an_empty_string.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_GenderIdentity/_gender/Grom_Node_has_all_the_required_objects/returns_the_gender_for_a_Grom_Node_object_of_type_GenderIdentity.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_GenderIdentity/_gender/Grom_Node_has_all_the_required_objects/returns_the_gender_for_a_Grom_Node_object_of_type_GenderIdentity.yml deleted file mode 100644 index 83c5b47..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_GenderIdentity/_gender/Grom_Node_has_all_the_required_objects/returns_the_gender_for_a_Grom_Node_object_of_type_GenderIdentity.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_GenderIdentity/_gender/Grom_Node_has_no_gender/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_GenderIdentity/_gender/Grom_Node_has_no_gender/returns_nil.yml deleted file mode 100644 index d1e5711..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_GenderIdentity/_gender/Grom_Node_has_no_gender/returns_nil.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_house_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_house_incumbencies_for_a_Grom_Node_object_of_type_House.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_house_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_house_incumbencies_for_a_Grom_Node_object_of_type_House.yml deleted file mode 100644 index 1b49795..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_house_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_house_incumbencies_for_a_Grom_Node_object_of_type_House.yml +++ /dev/null @@ -1,85 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/90558d1f-ea34-4c44-b3ad-ed9c98a557d1/houses - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"bc6c0e5bab4ac0f931530bed08ccf76c" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b29774e3-72a8-475b-a018-9755ed1d864d - X-Runtime: - - '0.456920' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - "House of Lords" . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - . - "House of Commons" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - http_version: - recorded_at: Thu, 02 Mar 2017 11:57:40 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_house_incumbencies/Grom_Node_has_no_house_incumbencies/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_house_incumbencies/Grom_Node_has_no_house_incumbencies/returns_an_empty_string.yml deleted file mode 100644 index 4d8cdce..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_house_incumbencies/Grom_Node_has_no_house_incumbencies/returns_an_empty_string.yml +++ /dev/null @@ -1,84 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/90558d1f-ea34-4c44-b3ad-ed9c98a557d1/houses - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"bc6c0e5bab4ac0f931530bed08ccf76c" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 898d8262-efc4-495f-a365-8015a9a4be08 - X-Runtime: - - '0.300321' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Margaret" . - "Thatcher" . - . - "House of Lords" . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - "House of Commons" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - http_version: - recorded_at: Thu, 02 Mar 2017 11:57:41 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_name/Grom_Node_has_all_the_required_objects/returns_the_name_for_a_Grom_Node_object_of_type_House.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_name/Grom_Node_has_all_the_required_objects/returns_the_name_for_a_Grom_Node_object_of_type_House.yml deleted file mode 100644 index 83c5b47..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_name/Grom_Node_has_all_the_required_objects/returns_the_name_for_a_Grom_Node_object_of_type_House.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_name/Grom_Node_has_no_name/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_name/Grom_Node_has_no_name/returns_an_empty_string.yml deleted file mode 100644 index e3a5634..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_name/Grom_Node_has_no_name/returns_an_empty_string.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_seat_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_seat_incumbencies_for_a_Grom_Node_object_of_type_House.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_seat_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_seat_incumbencies_for_a_Grom_Node_object_of_type_House.yml deleted file mode 100644 index f791167..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_seat_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_seat_incumbencies_for_a_Grom_Node_object_of_type_House.yml +++ /dev/null @@ -1,80 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/ff75cd0c-1a8b-49ab-8292-f00d153588e5/houses - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"3d0ed58645d048d5dc2220a7999c3865" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - c2bfb727-af5e-4949-b2bb-8c8df3d49551 - X-Runtime: - - '0.024373' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - "House of Commons" . - . - . - "1997-05-01"^^ . - "1994-06-09"^^ . - . - . - . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - "2015-05-07"^^ . - . - http_version: - recorded_at: Wed, 08 Feb 2017 11:55:21 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_seat_incumbencies/Grom_Node_has_no_seat_incumbencies/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_seat_incumbencies/Grom_Node_has_no_seat_incumbencies/returns_an_empty_string.yml deleted file mode 100644 index b2c938e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_seat_incumbencies/Grom_Node_has_no_seat_incumbencies/returns_an_empty_string.yml +++ /dev/null @@ -1,77 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/ff75cd0c-1a8b-49ab-8292-f00d153588e5/houses - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"3d0ed58645d048d5dc2220a7999c3865" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - c2bfb727-af5e-4949-b2bb-8c8df3d49551 - X-Runtime: - - '0.024373' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - "House of Commons" . - . - "1997-05-01"^^ . - "1994-06-09"^^ . - . - . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - "2015-05-07"^^ . - . - http_version: - recorded_at: Wed, 08 Feb 2017 11:55:21 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_seats/Grom_Node_has_all_the_required_objects/returns_the_seats_for_a_Grom_Node_object_of_type_House.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_seats/Grom_Node_has_all_the_required_objects/returns_the_seats_for_a_Grom_Node_object_of_type_House.yml deleted file mode 100644 index 8597dd6..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_seats/Grom_Node_has_all_the_required_objects/returns_the_seats_for_a_Grom_Node_object_of_type_House.yml +++ /dev/null @@ -1,80 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/ff75cd0c-1a8b-49ab-8292-f00d153588e5/houses - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"3d0ed58645d048d5dc2220a7999c3865" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 7f76cb4e-cd82-4623-b049-8714a21e3038 - X-Runtime: - - '0.051079' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - "House of Commons" . - . - . - "1997-05-01"^^ . - "1994-06-09"^^ . - . - . - . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - "2015-05-07"^^ . - . - http_version: - recorded_at: Wed, 08 Feb 2017 11:55:21 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_seats/Grom_Node_has_no_seats/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_seats/Grom_Node_has_no_seats/returns_an_empty_string.yml deleted file mode 100644 index 1c98171..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_House/_seats/Grom_Node_has_no_seats/returns_an_empty_string.yml +++ /dev/null @@ -1,77 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/ff75cd0c-1a8b-49ab-8292-f00d153588e5/houses - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"3d0ed58645d048d5dc2220a7999c3865" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 7f76cb4e-cd82-4623-b049-8714a21e3038 - X-Runtime: - - '0.051079' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - "House of Commons" . - . - "1997-05-01"^^ . - "1994-06-09"^^ . - . - . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - "2015-05-07"^^ . - . - http_version: - recorded_at: Wed, 08 Feb 2017 11:55:21 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_contact_points/house_incumbency_has_contact_points/returns_an_array_of_contact_points.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_contact_points/house_incumbency_has_contact_points/returns_an_array_of_contact_points.yml deleted file mode 100644 index 97769e4..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_contact_points/house_incumbency_has_contact_points/returns_an_array_of_contact_points.yml +++ /dev/null @@ -1,130 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/90558d1f-ea34-4c44-b3ad-ed9c98a557d1 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"e83b3d497b1f4650b91894ea0554ff1e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 90bd2ec5-7e57-4c8b-87c0-ddf097d30cc2 - X-Runtime: - - '0.462535' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - "example@parliament.uk " . - "020 1234 5678" . - "020 1234 5678" . - . - . - "House of Lords" . - "London" . - "SW1A 0PW" . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - . - "Conservative" . - . - "1992-06-26"^^ . - "2013-04-08"^^ . - . - . - "House of Lords" . - . - . - "1959-10-08"^^ . - "1992-04-09"^^ . - . - . - "Finchley" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - . - . - . - . - "House of Commons" . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - . - "Finchley" . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - . - . - . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - . - "Finchley" . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - http_version: - recorded_at: Thu, 02 Mar 2017 09:50:01 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_contact_points/house_incumbency_has_no_contact_points/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_contact_points/house_incumbency_has_no_contact_points/returns_an_empty_array.yml deleted file mode 100644 index 90035ad..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_contact_points/house_incumbency_has_no_contact_points/returns_an_empty_array.yml +++ /dev/null @@ -1,120 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/90558d1f-ea34-4c44-b3ad-ed9c98a557d1 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"e83b3d497b1f4650b91894ea0554ff1e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - fe67b63d-9331-40fb-86e2-e73196acd92f - X-Runtime: - - '0.371052' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1- givenName" . - "Person 1 - familyName" . - . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - "Conservative" . - . - "1992-06-26"^^ . - "2013-04-08"^^ . - . - . - "House of Lords" . - . - . - "1959-10-08"^^ . - "1992-04-09"^^ . - . - . - "Finchley" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - . - . - . - . - "House of Commons" . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - . - "Finchley" . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - . - . - . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - . - "Finchley" . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - http_version: - recorded_at: Thu, 02 Mar 2017 09:50:01 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_non_current_house_incumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_non_current_house_incumbency.yml deleted file mode 100644 index 2c01f6e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_non_current_house_incumbency.yml +++ /dev/null @@ -1,123 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/90558d1f-ea34-4c44-b3ad-ed9c98a557d1 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"e83b3d497b1f4650b91894ea0554ff1e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4c773b1a-15a1-4c9f-b294-00cb196ea235 - X-Runtime: - - '0.400764' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - . - "Conservative" . - . - "1992-06-26"^^ . - "2013-04-08"^^ . - . - . - "House of Lords" . - . - . - "1959-10-08"^^ . - "1992-04-09"^^ . - . - . - "Finchley" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - . - . - . - . - "House of Commons" . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - . - "Finchley" . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - . - . - . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - . - "Finchley" . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - . - - http_version: - recorded_at: Wed, 01 Mar 2017 16:33:52 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_end_date/house_incumbency_has_an_end_date/returns_the_end_date_of_the_house_incumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_end_date/house_incumbency_has_an_end_date/returns_the_end_date_of_the_house_incumbency.yml deleted file mode 100644 index 4d1188a..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_end_date/house_incumbency_has_an_end_date/returns_the_end_date_of_the_house_incumbency.yml +++ /dev/null @@ -1,121 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/90558d1f-ea34-4c44-b3ad-ed9c98a557d1 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"e83b3d497b1f4650b91894ea0554ff1e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4c773b1a-15a1-4c9f-b294-00cb196ea235 - X-Runtime: - - '0.400764' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - . - "Conservative" . - . - "1992-06-26"^^ . - "2013-04-08"^^ . - . - . - "House of Lords" . - . - . - "1959-10-08"^^ . - "1992-04-09"^^ . - . - . - "Finchley" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - . - . - . - . - "House of Commons" . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - . - "Finchley" . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - . - . - . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - . - "Finchley" . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - http_version: - recorded_at: Wed, 01 Mar 2017 16:33:52 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_end_date/house_incumbency_has_no_end_date/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_end_date/house_incumbency_has_no_end_date/returns_nil.yml deleted file mode 100644 index 2c01f6e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_end_date/house_incumbency_has_no_end_date/returns_nil.yml +++ /dev/null @@ -1,123 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/90558d1f-ea34-4c44-b3ad-ed9c98a557d1 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"e83b3d497b1f4650b91894ea0554ff1e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4c773b1a-15a1-4c9f-b294-00cb196ea235 - X-Runtime: - - '0.400764' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - . - "Conservative" . - . - "1992-06-26"^^ . - "2013-04-08"^^ . - . - . - "House of Lords" . - . - . - "1959-10-08"^^ . - "1992-04-09"^^ . - . - . - "Finchley" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - . - . - . - . - "House of Commons" . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - . - "Finchley" . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - . - . - . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - . - "Finchley" . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - . - - http_version: - recorded_at: Wed, 01 Mar 2017 16:33:52 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_house/Grom_Node_has_all_the_required_objects/returns_the_house_for_a_Grom_Node_object_of_type_HouseIncumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_house/Grom_Node_has_all_the_required_objects/returns_the_house_for_a_Grom_Node_object_of_type_HouseIncumbency.yml deleted file mode 100644 index 2c01f6e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_house/Grom_Node_has_all_the_required_objects/returns_the_house_for_a_Grom_Node_object_of_type_HouseIncumbency.yml +++ /dev/null @@ -1,123 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/90558d1f-ea34-4c44-b3ad-ed9c98a557d1 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"e83b3d497b1f4650b91894ea0554ff1e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4c773b1a-15a1-4c9f-b294-00cb196ea235 - X-Runtime: - - '0.400764' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - . - "Conservative" . - . - "1992-06-26"^^ . - "2013-04-08"^^ . - . - . - "House of Lords" . - . - . - "1959-10-08"^^ . - "1992-04-09"^^ . - . - . - "Finchley" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - . - . - . - . - "House of Commons" . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - . - "Finchley" . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - . - . - . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - . - "Finchley" . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - . - - http_version: - recorded_at: Wed, 01 Mar 2017 16:33:52 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_house/Grom_Node_has_no_house/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_house/Grom_Node_has_no_house/returns_nil.yml deleted file mode 100644 index 2c01f6e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_house/Grom_Node_has_no_house/returns_nil.yml +++ /dev/null @@ -1,123 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/90558d1f-ea34-4c44-b3ad-ed9c98a557d1 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"e83b3d497b1f4650b91894ea0554ff1e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4c773b1a-15a1-4c9f-b294-00cb196ea235 - X-Runtime: - - '0.400764' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - . - "Conservative" . - . - "1992-06-26"^^ . - "2013-04-08"^^ . - . - . - "House of Lords" . - . - . - "1959-10-08"^^ . - "1992-04-09"^^ . - . - . - "Finchley" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - . - . - . - . - "House of Commons" . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - . - "Finchley" . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - . - . - . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - . - "Finchley" . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - . - - http_version: - recorded_at: Wed, 01 Mar 2017 16:33:52 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_member/Grom_Node_has_all_the_required_objects/returns_the_member_for_a_Grom_Node_object_of_type_HouseIncumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_member/Grom_Node_has_all_the_required_objects/returns_the_member_for_a_Grom_Node_object_of_type_HouseIncumbency.yml deleted file mode 100644 index 579cef6..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_member/Grom_Node_has_all_the_required_objects/returns_the_member_for_a_Grom_Node_object_of_type_HouseIncumbency.yml +++ /dev/null @@ -1,125 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/90558d1f-ea34-4c44-b3ad-ed9c98a557d1 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"e83b3d497b1f4650b91894ea0554ff1e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4c773b1a-15a1-4c9f-b294-00cb196ea235 - X-Runtime: - - '0.400764' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - . - "Conservative" . - . - "1992-06-26"^^ . - "2013-04-08"^^ . - . - . - "House of Lords" . - . - . - "1959-10-08"^^ . - "1992-04-09"^^ . - . - . - "Finchley" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - . - . - . - . - "House of Commons" . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - . - "Finchley" . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - . - . - . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - . - "Finchley" . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - . - . - - - http_version: - recorded_at: Wed, 01 Mar 2017 16:33:52 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_member/Grom_Node_has_no_member/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_member/Grom_Node_has_no_member/returns_nil.yml deleted file mode 100644 index 2c01f6e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_member/Grom_Node_has_no_member/returns_nil.yml +++ /dev/null @@ -1,123 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/90558d1f-ea34-4c44-b3ad-ed9c98a557d1 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"e83b3d497b1f4650b91894ea0554ff1e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4c773b1a-15a1-4c9f-b294-00cb196ea235 - X-Runtime: - - '0.400764' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - . - "Conservative" . - . - "1992-06-26"^^ . - "2013-04-08"^^ . - . - . - "House of Lords" . - . - . - "1959-10-08"^^ . - "1992-04-09"^^ . - . - . - "Finchley" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - . - . - . - . - "House of Commons" . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - . - "Finchley" . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - . - . - . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - . - "Finchley" . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - . - - http_version: - recorded_at: Wed, 01 Mar 2017 16:33:52 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_start_date/house_incumbency_has_a_start_date/returns_the_start_date_of_the_house_incumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_start_date/house_incumbency_has_a_start_date/returns_the_start_date_of_the_house_incumbency.yml deleted file mode 100644 index d4eb429..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_start_date/house_incumbency_has_a_start_date/returns_the_start_date_of_the_house_incumbency.yml +++ /dev/null @@ -1,121 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/90558d1f-ea34-4c44-b3ad-ed9c98a557d1 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"e83b3d497b1f4650b91894ea0554ff1e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4c773b1a-15a1-4c9f-b294-00cb196ea235 - X-Runtime: - - '0.400764' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - . - "Conservative" . - . - "1992-06-26"^^ . - "2013-04-08"^^ . - . - . - "House of Lords" . - . - . - "1959-10-08"^^ . - "1992-04-09"^^ . - . - . - "Finchley" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - . - . - . - . - "House of Commons" . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - . - "Finchley" . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - . - . - . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - . - "Finchley" . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - http_version: - recorded_at: Wed, 01 Mar 2017 16:33:52 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_start_date/house_incumbency_has_no_start_date/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_start_date/house_incumbency_has_no_start_date/returns_nil.yml deleted file mode 100644 index 2c01f6e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseIncumbency/_start_date/house_incumbency_has_no_start_date/returns_nil.yml +++ /dev/null @@ -1,123 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/90558d1f-ea34-4c44-b3ad-ed9c98a557d1 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"e83b3d497b1f4650b91894ea0554ff1e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4c773b1a-15a1-4c9f-b294-00cb196ea235 - X-Runtime: - - '0.400764' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - . - "Conservative" . - . - "1992-06-26"^^ . - "2013-04-08"^^ . - . - . - "House of Lords" . - . - . - "1959-10-08"^^ . - "1992-04-09"^^ . - . - . - "Finchley" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - . - . - . - . - "House of Commons" . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - . - "Finchley" . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - . - . - . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - . - "Finchley" . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - . - - http_version: - recorded_at: Wed, 01 Mar 2017 16:33:52 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_constituency/Grom_Node_has_all_the_required_objects/returns_the_constituency_for_a_Grom_Node_object_of_type_HouseSeat.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_constituency/Grom_Node_has_all_the_required_objects/returns_the_constituency_for_a_Grom_Node_object_of_type_HouseSeat.yml deleted file mode 100644 index 4494fff..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_constituency/Grom_Node_has_all_the_required_objects/returns_the_constituency_for_a_Grom_Node_object_of_type_HouseSeat.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 9583353d-1612-42f3-9207-d123c8df3df4 - X-Runtime: - - '0.048411' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:11:59 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_constituency/Grom_Node_has_no_constituency/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_constituency/Grom_Node_has_no_constituency/returns_nil.yml deleted file mode 100644 index c90b866..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_constituency/Grom_Node_has_no_constituency/returns_nil.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 9583353d-1612-42f3-9207-d123c8df3df4 - X-Runtime: - - '0.048411' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:11:59 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_house/Grom_Node_has_all_the_required_objects/returns_the_house_for_a_Grom_Node_object_of_type_HouseSeat.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_house/Grom_Node_has_all_the_required_objects/returns_the_house_for_a_Grom_Node_object_of_type_HouseSeat.yml deleted file mode 100644 index 4494fff..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_house/Grom_Node_has_all_the_required_objects/returns_the_house_for_a_Grom_Node_object_of_type_HouseSeat.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 9583353d-1612-42f3-9207-d123c8df3df4 - X-Runtime: - - '0.048411' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:11:59 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_house/Grom_Node_has_no_house/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_house/Grom_Node_has_no_house/returns_nil.yml deleted file mode 100644 index 5b52dc6..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_house/Grom_Node_has_no_house/returns_nil.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 9583353d-1612-42f3-9207-d123c8df3df4 - X-Runtime: - - '0.048411' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:11:59 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_seat_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_seat_incumbencies_for_a_Grom_Node_object_of_type_HouseSeat.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_seat_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_seat_incumbencies_for_a_Grom_Node_object_of_type_HouseSeat.yml deleted file mode 100644 index 4494fff..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_seat_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_seat_incumbencies_for_a_Grom_Node_object_of_type_HouseSeat.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 9583353d-1612-42f3-9207-d123c8df3df4 - X-Runtime: - - '0.048411' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:11:59 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_seat_incumbencies/Grom_Node_has_no_seat_incumbencies/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_seat_incumbencies/Grom_Node_has_no_seat_incumbencies/returns_an_empty_array.yml deleted file mode 100644 index 7873c82..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_HouseSeat/_seat_incumbencies/Grom_Node_has_no_seat_incumbencies/returns_an_empty_array.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 9583353d-1612-42f3-9207-d123c8df3df4 - X-Runtime: - - '0.048411' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:11:59 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_contact_points/incumbency_has_contact_points/returns_an_array_of_contact_points.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_contact_points/incumbency_has_contact_points/returns_an_array_of_contact_points.yml deleted file mode 100644 index d8b40aa..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_contact_points/incumbency_has_contact_points/returns_an_array_of_contact_points.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"adc69ae96f5dbb248ae87d93d3454326" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - ddfef393-8c63-4be8-ac51-724000fa1e00 - X-Runtime: - - '3.038107' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - . - "North Devon" . - . - . - . - . - . - "example@parliament.uk" . - "020 1234 5678" . - . - . - "SW1A 0AA" . - "House of Commons" . - "London" . - http_version: - recorded_at: Thu, 02 Mar 2017 10:42:08 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_contact_points/incumbency_has_no_contact_points/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_contact_points/incumbency_has_no_contact_points/returns_an_empty_array.yml deleted file mode 100644 index edd58ab..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_contact_points/incumbency_has_no_contact_points/returns_an_empty_array.yml +++ /dev/null @@ -1,60 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"adc69ae96f5dbb248ae87d93d3454326" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - ddfef393-8c63-4be8-ac51-724000fa1e00 - X-Runtime: - - '3.038107' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - . - "North Devon" . - . - . - . - . - "example@parliament.uk" . - "020 1234 5678" . - . - . - "SW1A 0AA" . - "House of Commons" . - "London" . - http_version: - recorded_at: Thu, 02 Mar 2017 10:42:08 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_non_current_incumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_non_current_incumbency.yml deleted file mode 100644 index bac1741..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_non_current_incumbency.yml +++ /dev/null @@ -1,78 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"adc69ae96f5dbb248ae87d93d3454326" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 936aa55c-08bd-4b80-b353-9d2affc63e63 - X-Runtime: - - '3.158557' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - "House of Commons" . - . - "2015-05-07"^^ . - "2016-05-07"^^ . - . - . - . - "Conservative" . - . - "Person 2 - givenName" . - "Person 2 - familyName" . - . - . - . - "2015-05-07"^^ . - . - . - . - "Person 3 - givenName" . - "Person 3 - familyName" . - . - . - . - "2015-05-07"^^ . - . - . - http_version: - recorded_at: Wed, 01 Mar 2017 15:07:57 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_end_date/incumbency_has_an_end_date/returns_the_end_date_of_the_incumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_end_date/incumbency_has_an_end_date/returns_the_end_date_of_the_incumbency.yml deleted file mode 100644 index bac1741..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_end_date/incumbency_has_an_end_date/returns_the_end_date_of_the_incumbency.yml +++ /dev/null @@ -1,78 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"adc69ae96f5dbb248ae87d93d3454326" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 936aa55c-08bd-4b80-b353-9d2affc63e63 - X-Runtime: - - '3.158557' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - "House of Commons" . - . - "2015-05-07"^^ . - "2016-05-07"^^ . - . - . - . - "Conservative" . - . - "Person 2 - givenName" . - "Person 2 - familyName" . - . - . - . - "2015-05-07"^^ . - . - . - . - "Person 3 - givenName" . - "Person 3 - familyName" . - . - . - . - "2015-05-07"^^ . - . - . - http_version: - recorded_at: Wed, 01 Mar 2017 15:07:57 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_end_date/incumbency_has_no_end_date/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_end_date/incumbency_has_no_end_date/returns_nil.yml deleted file mode 100644 index 3353062..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_end_date/incumbency_has_no_end_date/returns_nil.yml +++ /dev/null @@ -1,77 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"adc69ae96f5dbb248ae87d93d3454326" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 936aa55c-08bd-4b80-b353-9d2affc63e63 - X-Runtime: - - '3.158557' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - "House of Commons" . - . - "2015-05-07"^^ . - . - . - . - "Conservative" . - . - "Person 2 - givenName" . - "Person 2 - familyName" . - . - . - . - "2015-05-07"^^ . - . - . - . - "Person 3 - givenName" . - "Person 3 - familyName" . - . - . - . - "2015-05-07"^^ . - . - . - http_version: - recorded_at: Wed, 01 Mar 2017 15:07:57 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_house/Grom_Node_has_all_the_required_objects/returns_the_house_for_a_Grom_Node_object_of_type_Incumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_house/Grom_Node_has_all_the_required_objects/returns_the_house_for_a_Grom_Node_object_of_type_Incumbency.yml deleted file mode 100644 index 506ada9..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_house/Grom_Node_has_all_the_required_objects/returns_the_house_for_a_Grom_Node_object_of_type_Incumbency.yml +++ /dev/null @@ -1,123 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"e83b3d497b1f4650b91894ea0554ff1e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4c773b1a-15a1-4c9f-b294-00cb196ea235 - X-Runtime: - - '0.400764' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - . - "Conservative" . - . - "1992-06-26"^^ . - "2013-04-08"^^ . - . - . - "House of Lords" . - . - . - "1959-10-08"^^ . - "1992-04-09"^^ . - . - . - "Finchley" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - . - . - . - . - "House of Commons" . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - . - "Finchley" . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - . - . - . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - . - "Finchley" . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - . - - http_version: - recorded_at: Wed, 01 Mar 2017 16:33:52 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_house/Grom_Node_has_no_house/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_house/Grom_Node_has_no_house/returns_nil.yml deleted file mode 100644 index 218eb67..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_house/Grom_Node_has_no_house/returns_nil.yml +++ /dev/null @@ -1,122 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"e83b3d497b1f4650b91894ea0554ff1e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4c773b1a-15a1-4c9f-b294-00cb196ea235 - X-Runtime: - - '0.400764' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - "Conservative" . - . - "1992-06-26"^^ . - "2013-04-08"^^ . - . - . - "House of Lords" . - . - . - "1959-10-08"^^ . - "1992-04-09"^^ . - . - . - "Finchley" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - . - . - . - . - "House of Commons" . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - . - "Finchley" . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - . - . - . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - . - "Finchley" . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - . - - http_version: - recorded_at: Wed, 01 Mar 2017 16:33:52 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_member/Grom_Node_has_all_the_required_objects/returns_the_member_for_a_Grom_Node_object_of_type_Incumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_member/Grom_Node_has_all_the_required_objects/returns_the_member_for_a_Grom_Node_object_of_type_Incumbency.yml deleted file mode 100644 index 8e355aa..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_member/Grom_Node_has_all_the_required_objects/returns_the_member_for_a_Grom_Node_object_of_type_Incumbency.yml +++ /dev/null @@ -1,79 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"adc69ae96f5dbb248ae87d93d3454326" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 936aa55c-08bd-4b80-b353-9d2affc63e63 - X-Runtime: - - '3.158557' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - "House of Commons" . - . - "2015-05-07"^^ . - "2016-05-07"^^ . - . - . - . - "Conservative" . - . - "Person 2 - givenName" . - "Person 2 - familyName" . - . - . - . - "2015-05-07"^^ . - . - . - . - "Person 3 - givenName" . - "Person 3 - familyName" . - . - . - . - "2015-05-07"^^ . - . - . - http_version: - recorded_at: Wed, 01 Mar 2017 15:07:57 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_member/Grom_Node_has_no_member/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_member/Grom_Node_has_no_member/returns_nil.yml deleted file mode 100644 index bac1741..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_member/Grom_Node_has_no_member/returns_nil.yml +++ /dev/null @@ -1,78 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"adc69ae96f5dbb248ae87d93d3454326" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 936aa55c-08bd-4b80-b353-9d2affc63e63 - X-Runtime: - - '3.158557' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - "House of Commons" . - . - "2015-05-07"^^ . - "2016-05-07"^^ . - . - . - . - "Conservative" . - . - "Person 2 - givenName" . - "Person 2 - familyName" . - . - . - . - "2015-05-07"^^ . - . - . - . - "Person 3 - givenName" . - "Person 3 - familyName" . - . - . - . - "2015-05-07"^^ . - . - . - http_version: - recorded_at: Wed, 01 Mar 2017 15:07:57 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_seat/Grom_Node_has_all_the_required_objects/returns_the_seat_for_a_Grom_Node_object_of_type_Incumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_seat/Grom_Node_has_all_the_required_objects/returns_the_seat_for_a_Grom_Node_object_of_type_Incumbency.yml deleted file mode 100644 index da8314f..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_seat/Grom_Node_has_all_the_required_objects/returns_the_seat_for_a_Grom_Node_object_of_type_Incumbency.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b4c58891-bcbb-4991-8104-34e25d0fca3d - X-Runtime: - - '0.048442' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:08:04 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_seat/Grom_Node_has_no_seats/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_seat/Grom_Node_has_no_seats/returns_nil.yml deleted file mode 100644 index e28f35e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_seat/Grom_Node_has_no_seats/returns_nil.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b4c58891-bcbb-4991-8104-34e25d0fca3d - X-Runtime: - - '0.048442' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:08:04 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_start_date/incumbency_has_a_start_date/returns_the_start_date_of_the_incumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_start_date/incumbency_has_a_start_date/returns_the_start_date_of_the_incumbency.yml deleted file mode 100644 index 93d9d1f..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_start_date/incumbency_has_a_start_date/returns_the_start_date_of_the_incumbency.yml +++ /dev/null @@ -1,77 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"adc69ae96f5dbb248ae87d93d3454326" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 936aa55c-08bd-4b80-b353-9d2affc63e63 - X-Runtime: - - '3.158557' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - "House of Commons" . - . - "2015-05-07"^^ . - . - . - . - "Conservative" . - . - "Person 2 - givenName" . - "Person 2 - familyName" . - . - . - . - "2015-05-07"^^ . - . - . - . - "Person 3 - givenName" . - "Person 3 - familyName" . - . - . - . - "2015-05-07"^^ . - . - . - http_version: - recorded_at: Wed, 01 Mar 2017 15:07:57 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_start_date/incumbency_has_no_start_date/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_start_date/incumbency_has_no_start_date/returns_nil.yml deleted file mode 100644 index 7fdd1dc..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Incumbency/_start_date/incumbency_has_no_start_date/returns_nil.yml +++ /dev/null @@ -1,76 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"adc69ae96f5dbb248ae87d93d3454326" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 936aa55c-08bd-4b80-b353-9d2affc63e63 - X-Runtime: - - '3.158557' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - "House of Commons" . - . - "2015-05-07"^^ . - . - . - . - "Conservative" . - . - "Person 2 - givenName" . - "Person 2 - familyName" . - . - . - . - . - . - . - "Person 3 - givenName" . - "Person 3 - familyName" . - . - . - . - "2015-05-07"^^ . - . - . - http_version: - recorded_at: Wed, 01 Mar 2017 15:07:57 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_member_count/Grom_Node_has_a_member_count/returns_the_member_count_for_a_Grom_Node_object_of_type_Party.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_member_count/Grom_Node_has_a_member_count/returns_the_member_count_for_a_Grom_Node_object_of_type_Party.yml deleted file mode 100644 index 01295e7..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_member_count/Grom_Node_has_a_member_count/returns_the_member_count_for_a_Grom_Node_object_of_type_Party.yml +++ /dev/null @@ -1,87 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/parties/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"2dc4c4cd100cb54a3c420c0e45fc2e30" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 708ed2d5-c08f-4374-bc20-97a96930533d - X-Runtime: - - '0.267783' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "House of Commons" . - . - "Ulster Unionist Party" . - "2"^^ . - . - "Green Party" . - "1"^^ . - . - "Conservative" . - "330"^^ . - . - "Social Democratic & Labour Party" . - "3"^^ . - . - "Scottish National Party" . - "54"^^ . - . - "Liberal Democrat" . - "9"^^ . - . - "Independent" . - "4"^^ . - . - "Sinn Fein" . - "4"^^ . - . - "Labour" . - "229"^^ . - . - "Plaid Cymru" . - "3"^^ . - . - "Speaker" . - "1"^^ . - . - "Democratic Unionist Party" . - "8"^^ . - . - "UK Independence Party" . - "1"^^ . - http_version: - recorded_at: Mon, 06 Mar 2017 13:13:55 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_member_count/Grom_Node_has_no_count/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_member_count/Grom_Node_has_no_count/returns_nil.yml deleted file mode 100644 index 50e65dd..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_member_count/Grom_Node_has_no_count/returns_nil.yml +++ /dev/null @@ -1,86 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/houses/4b77dd58-f6ba-4121-b521-c8ad70465f52/parties/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"2dc4c4cd100cb54a3c420c0e45fc2e30" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 0d84b0ff-2169-42b5-a0a1-469dc7ce22fb - X-Runtime: - - '0.302627' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "House of Commons" . - . - "Ulster Unionist Party" . - "2"^^ . - . - "Green Party" . - . - "Conservative" . - "330"^^ . - . - "Social Democratic & Labour Party" . - "3"^^ . - . - "Scottish National Party" . - "54"^^ . - . - "Liberal Democrat" . - "9"^^ . - . - "Independent" . - "4"^^ . - . - "Sinn Fein" . - "4"^^ . - . - "Labour" . - "229"^^ . - . - "Plaid Cymru" . - "3"^^ . - . - "Speaker" . - "1"^^ . - . - "Democratic Unionist Party" . - "8"^^ . - . - "UK Independence Party" . - "1"^^ . - http_version: - recorded_at: Mon, 06 Mar 2017 13:13:56 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_name/Grom_Node_does_not_have_have_a_name/confirms_that_the_name_for_this_Grom_Node_node_does_not_exist.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_name/Grom_Node_does_not_have_have_a_name/confirms_that_the_name_for_this_Grom_Node_node_does_not_exist.yml deleted file mode 100644 index dbba5bd..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_name/Grom_Node_does_not_have_have_a_name/confirms_that_the_name_for_this_Grom_Node_node_does_not_exist.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 0d28858e-0bd6-4a43-ae04-03c48cfdf2c3 - X-Runtime: - - '0.057891' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1950-10-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:43:35 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_name/Grom_Node_has_all_the_required_objects/confirms_that_the_type_for_this_Grom_Node_object_is_Party.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_name/Grom_Node_has_all_the_required_objects/confirms_that_the_type_for_this_Grom_Node_object_is_Party.yml deleted file mode 100644 index dfa017b..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_name/Grom_Node_has_all_the_required_objects/confirms_that_the_type_for_this_Grom_Node_object_is_Party.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 0a34f574-fc4f-46cc-8800-e4408b6141ef - X-Runtime: - - '0.102984' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Tessa" . - "Jowell" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - http_version: - recorded_at: Fri, 10 Feb 2017 13:04:53 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_name/Grom_Node_has_all_the_required_objects/returns_the_name_of_the_party_for_the_Grom_Node_object.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_name/Grom_Node_has_all_the_required_objects/returns_the_name_of_the_party_for_the_Grom_Node_object.yml deleted file mode 100644 index 11ce040..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_name/Grom_Node_has_all_the_required_objects/returns_the_name_of_the_party_for_the_Grom_Node_object.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - f07b3538-b729-489a-a41b-8b01abe0bc61 - X-Runtime: - - '0.066652' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Tessa" . - "Jowell" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - http_version: - recorded_at: Fri, 10 Feb 2017 13:04:53 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_party_memberships/Grom_Node_has_all_the_required_objects/returns_the_party_memberships_for_a_Grom_Node_object_of_type_Party.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_party_memberships/Grom_Node_has_all_the_required_objects/returns_the_party_memberships_for_a_Grom_Node_object_of_type_Party.yml deleted file mode 100644 index f74b55b..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_party_memberships/Grom_Node_has_all_the_required_objects/returns_the_party_memberships_for_a_Grom_Node_object_of_type_Party.yml +++ /dev/null @@ -1,58 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff/parties - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"aedc0e617c67f9b392781dad46804818" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 2f6827af-1fd5-4d76-b706-41239d2d8a08 - X-Runtime: - - '0.038129' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - "Labour" . - . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "2015-10-27"^^ . - http_version: - recorded_at: Tue, 07 Feb 2017 17:15:22 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_party_memberships/Grom_Node_has_no_name/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_party_memberships/Grom_Node_has_no_name/returns_an_empty_array.yml deleted file mode 100644 index 4f1a221..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Party/_party_memberships/Grom_Node_has_no_name/returns_an_empty_array.yml +++ /dev/null @@ -1,59 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff/parties - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"aedc0e617c67f9b392781dad46804818" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 2f6827af-1fd5-4d76-b706-41239d2d8a08 - X-Runtime: - - '0.038129' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - "Labour" . - . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "2015-10-27"^^ . - . - http_version: - recorded_at: Tue, 07 Feb 2017 17:15:22 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_non_current_party_membership.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_non_current_party_membership.yml deleted file mode 100644 index 2ee616f..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_non_current_party_membership.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1950-10-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_end_date/Grom_Node_has_all_the_required_objects/returns_the_end_date_for_a_Grom_Node_object_of_type_PartyMembership.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_end_date/Grom_Node_has_all_the_required_objects/returns_the_end_date_for_a_Grom_Node_object_of_type_PartyMembership.yml deleted file mode 100644 index 83c5b47..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_end_date/Grom_Node_has_all_the_required_objects/returns_the_end_date_for_a_Grom_Node_object_of_type_PartyMembership.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_end_date/Grom_Node_has_no_end_date/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_end_date/Grom_Node_has_no_end_date/returns_nil.yml deleted file mode 100644 index 7ebf4e5..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_end_date/Grom_Node_has_no_end_date/returns_nil.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b2861cba-9aaa-4816-9dad-0a7c911c82ab - X-Runtime: - - '0.268632' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1950-10-17"^^ . - "Person - givenName" . - "Person - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - http_version: - recorded_at: Thu, 09 Feb 2017 14:37:47 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_party/Grom_Node_has_all_the_required_objects/returns_the_party_for_a_Grom_Node_object_of_type_PartyMembership.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_party/Grom_Node_has_all_the_required_objects/returns_the_party_for_a_Grom_Node_object_of_type_PartyMembership.yml deleted file mode 100644 index 83c5b47..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_party/Grom_Node_has_all_the_required_objects/returns_the_party_for_a_Grom_Node_object_of_type_PartyMembership.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_party/Grom_Node_has_no_parties/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_party/Grom_Node_has_no_parties/returns_an_empty_array.yml deleted file mode 100644 index b7861f2..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_party/Grom_Node_has_no_parties/returns_an_empty_array.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_start_date/Grom_Node_has_all_the_required_objects/returns_the_start_date_for_a_Grom_Node_object_of_type_PartyMembership.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_start_date/Grom_Node_has_all_the_required_objects/returns_the_start_date_for_a_Grom_Node_object_of_type_PartyMembership.yml deleted file mode 100644 index 83c5b47..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_start_date/Grom_Node_has_all_the_required_objects/returns_the_start_date_for_a_Grom_Node_object_of_type_PartyMembership.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_start_date/Grom_Node_has_no_start_date/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_start_date/Grom_Node_has_no_start_date/returns_nil.yml deleted file mode 100644 index 8051dc0..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PartyMembership/_start_date/Grom_Node_has_no_start_date/returns_nil.yml +++ /dev/null @@ -1,107 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - fdef0f85-54ef-4814-b948-39ed00644d6f - X-Runtime: - - '0.052757' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1950-10-17"^^ . - "Person - givenName" . - "Person - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - http_version: - recorded_at: Thu, 09 Feb 2017 14:24:27 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_constituencies/Grom_Node_has_all_the_required_objects/returns_the_parties_for_a_Grom_Node_objects_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_constituencies/Grom_Node_has_all_the_required_objects/returns_the_parties_for_a_Grom_Node_objects_of_type_Person.yml deleted file mode 100644 index 95a2def..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_constituencies/Grom_Node_has_all_the_required_objects/returns_the_parties_for_a_Grom_Node_objects_of_type_Person.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_constituencies/Grom_Node_has_no_constituencies/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_constituencies/Grom_Node_has_no_constituencies/returns_an_empty_array.yml deleted file mode 100644 index 83c5b47..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_constituencies/Grom_Node_has_no_constituencies/returns_an_empty_array.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_contact_points/Grom_Node_has_all_the_required_objects/returns_the_contact_points_for_a_Grom_Node_object_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_contact_points/Grom_Node_has_all_the_required_objects/returns_the_contact_points_for_a_Grom_Node_object_of_type_Person.yml deleted file mode 100644 index 72b9e2a..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_contact_points/Grom_Node_has_all_the_required_objects/returns_the_contact_points_for_a_Grom_Node_object_of_type_Person.yml +++ /dev/null @@ -1,70 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"5d079f68e98b1acf38f8575e43aceaff" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 2314af10-bb8c-47e1-a973-3f4b41d5ccc9 - X-Runtime: - - '0.042646' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1950-10-08"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "M" . - . - "example@parliament.uk" . - "01234 567890" . - . - . - "123 Test Lane" . - "Example" . - "AB12 3CD" . - . - "Crossbench" . - . - "1989-09-19"^^ . - . - http_version: - recorded_at: Tue, 07 Feb 2017 11:19:31 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_contact_points/Grom_Node_has_no_contact_points/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_contact_points/Grom_Node_has_no_contact_points/returns_an_empty_array.yml deleted file mode 100644 index c2f06e1..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_contact_points/Grom_Node_has_no_contact_points/returns_an_empty_array.yml +++ /dev/null @@ -1,71 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"5d079f68e98b1acf38f8575e43aceaff" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 2314af10-bb8c-47e1-a973-3f4b41d5ccc9 - X-Runtime: - - '0.042646' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1950-10-08"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "M" . - . - "example@parliament.uk" . - "01234 567890" . - . - . - "123 Test Lane" . - "Example" . - "AB12 3CD" . - . - "Crossbench" . - . - "1989-09-19"^^ . - . - . - http_version: - recorded_at: Tue, 07 Feb 2017 11:19:31 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_date_of_birth/Grom_Node_has_all_the_required_objects/returns_the_date_of_birth_for_a_Grom_Node_objects_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_date_of_birth/Grom_Node_has_all_the_required_objects/returns_the_date_of_birth_for_a_Grom_Node_objects_of_type_Person.yml deleted file mode 100644 index 2ee616f..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_date_of_birth/Grom_Node_has_all_the_required_objects/returns_the_date_of_birth_for_a_Grom_Node_objects_of_type_Person.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1950-10-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_date_of_birth/Grom_Node_has_no_personDateOfBirth/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_date_of_birth/Grom_Node_has_no_personDateOfBirth/returns_nil.yml deleted file mode 100644 index 2c72df4..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_date_of_birth/Grom_Node_has_no_personDateOfBirth/returns_nil.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_display_name/Grom_Node_has_all_the_required_objects/returns_the_given_display_name_for_a_Grom_Node_objects_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_display_name/Grom_Node_has_all_the_required_objects/returns_the_given_display_name_for_a_Grom_Node_objects_of_type_Person.yml deleted file mode 100644 index f93c901..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_display_name/Grom_Node_has_all_the_required_objects/returns_the_given_display_name_for_a_Grom_Node_objects_of_type_Person.yml +++ /dev/null @@ -1,64 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/841a4a1f-965a-4009-8cbc-dfc9e350fe0e - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"1764c834064bc46845f1a38886e2e0f6" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 85972f1e-2fd2-4612-ad9b-91040df7d2f2 - X-Runtime: - - '0.115507' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - "Person - displayAs" . - "Person - fullTitle" . - . - . - . - "2001-06-30"^^ . - . - . - . - "Crossbench" . - . - "2001-06-30"^^ . - . - . - "House of Lords" . - http_version: - recorded_at: Fri, 10 Mar 2017 11:18:50 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_display_name/Grom_Node_has_no_displayAs/returns_the_full_name.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_display_name/Grom_Node_has_no_displayAs/returns_the_full_name.yml deleted file mode 100644 index 2343919..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_display_name/Grom_Node_has_no_displayAs/returns_the_full_name.yml +++ /dev/null @@ -1,63 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/841a4a1f-965a-4009-8cbc-dfc9e350fe0e - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"1764c834064bc46845f1a38886e2e0f6" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 85972f1e-2fd2-4612-ad9b-91040df7d2f2 - X-Runtime: - - '0.115507' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - "Person - fullTitle" . - . - . - . - "2001-06-30"^^ . - . - . - . - "Crossbench" . - . - "2001-06-30"^^ . - . - . - "House of Lords" . - http_version: - recorded_at: Fri, 10 Mar 2017 11:18:50 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_family_name/Grom_Node_has_all_the_required_objects/returns_the_given_name_for_a_Grom_Node_objects_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_family_name/Grom_Node_has_all_the_required_objects/returns_the_given_name_for_a_Grom_Node_objects_of_type_Person.yml deleted file mode 100644 index 4808210..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_family_name/Grom_Node_has_all_the_required_objects/returns_the_given_name_for_a_Grom_Node_objects_of_type_Person.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 0d28858e-0bd6-4a43-ae04-03c48cfdf2c3 - X-Runtime: - - '0.057891' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1950-10-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:43:35 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_family_name/Grom_Node_has_no_personGivenName/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_family_name/Grom_Node_has_no_personGivenName/returns_an_empty_string.yml deleted file mode 100644 index 83edf03..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_family_name/Grom_Node_has_no_personGivenName/returns_an_empty_string.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 5acbcf1f-c661-4b59-99cb-a140b8d4267c - X-Runtime: - - '0.042235' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:43:35 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_name/Grom_Node_has_all_the_required_objects/returns_the_full_name_for_a_Grom_Node_objects_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_name/Grom_Node_has_all_the_required_objects/returns_the_full_name_for_a_Grom_Node_objects_of_type_Person.yml deleted file mode 100644 index f7fbd1f..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_name/Grom_Node_has_all_the_required_objects/returns_the_full_name_for_a_Grom_Node_objects_of_type_Person.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 35cd38f3-f3f2-4b3c-88e6-85ed6688a3ae - X-Runtime: - - '0.053702' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:46:37 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_name/Grom_Node_has_no_personFamilyName/returns_a_full_name_with_just_personGivenName.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_name/Grom_Node_has_no_personFamilyName/returns_a_full_name_with_just_personGivenName.yml deleted file mode 100644 index ea53154..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_name/Grom_Node_has_no_personFamilyName/returns_a_full_name_with_just_personGivenName.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 59b4d22d-3e1b-4715-977a-cf383f20bec2 - X-Runtime: - - '0.046020' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - "Person 2 - givenName" . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:46:37 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_name/Grom_Node_has_no_personGivenName/returns_a_full_name_with_just_personFamilyName.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_name/Grom_Node_has_no_personGivenName/returns_a_full_name_with_just_personFamilyName.yml deleted file mode 100644 index e5ca295..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_name/Grom_Node_has_no_personGivenName/returns_a_full_name_with_just_personFamilyName.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 5d72d31b-2cec-4c78-84f0-702f6cf1b4e1 - X-Runtime: - - '0.070579' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - "Person 2 - familyName" . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:46:37 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_name/Grom_Node_has_no_personGivenName_or_personFamilyName/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_name/Grom_Node_has_no_personGivenName_or_personFamilyName/returns_an_empty_string.yml deleted file mode 100644 index e35bfcd..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_name/Grom_Node_has_no_personGivenName_or_personFamilyName/returns_an_empty_string.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 0cd6dc58-0ee4-479f-9b31-8dfe3aae4e63 - X-Runtime: - - '0.045264' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:46:37 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_title/Grom_Node_has_all_the_required_objects/returns_the_given_full_title_for_a_Grom_Node_objects_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_title/Grom_Node_has_all_the_required_objects/returns_the_given_full_title_for_a_Grom_Node_objects_of_type_Person.yml deleted file mode 100644 index bc36d96..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_title/Grom_Node_has_all_the_required_objects/returns_the_given_full_title_for_a_Grom_Node_objects_of_type_Person.yml +++ /dev/null @@ -1,64 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/841a4a1f-965a-4009-8cbc-dfc9e350fe0e - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"1764c834064bc46845f1a38886e2e0f6" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 85972f1e-2fd2-4612-ad9b-91040df7d2f2 - X-Runtime: - - '0.115507' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - "Person - displayAs" . - "Person - fullTitle" . - . - . - . - "2001-06-30"^^ . - . - . - . - "Crossbench" . - . - "2001-06-30"^^ . - . - . - "House of Lords" . - http_version: - recorded_at: Fri, 10 Mar 2017 11:18:50 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_title/Grom_Node_has_no_fullTitle/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_title/Grom_Node_has_no_fullTitle/returns_an_empty_string.yml deleted file mode 100644 index 1e23680..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_full_title/Grom_Node_has_no_fullTitle/returns_an_empty_string.yml +++ /dev/null @@ -1,63 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/841a4a1f-965a-4009-8cbc-dfc9e350fe0e - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"1764c834064bc46845f1a38886e2e0f6" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 85972f1e-2fd2-4612-ad9b-91040df7d2f2 - X-Runtime: - - '0.115507' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - "Person - displayAs" . - . - . - . - "2001-06-30"^^ . - . - . - . - "Crossbench" . - . - "2001-06-30"^^ . - . - . - "House of Lords" . - http_version: - recorded_at: Fri, 10 Mar 2017 11:18:50 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_gender/Grom_Node_has_all_the_required_objects/returns_the_gender_for_a_Grom_Node_object_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_gender/Grom_Node_has_all_the_required_objects/returns_the_gender_for_a_Grom_Node_object_of_type_Person.yml deleted file mode 100644 index 83c5b47..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_gender/Grom_Node_has_all_the_required_objects/returns_the_gender_for_a_Grom_Node_object_of_type_Person.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_gender/Grom_Node_has_no_gender/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_gender/Grom_Node_has_no_gender/returns_nil.yml deleted file mode 100644 index 83c5b47..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_gender/Grom_Node_has_no_gender/returns_nil.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_gender_identities/Grom_Node_has_all_the_required_objects/returns_the_contact_points_for_a_Grom_Node_object_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_gender_identities/Grom_Node_has_all_the_required_objects/returns_the_contact_points_for_a_Grom_Node_object_of_type_Person.yml deleted file mode 100644 index 83c5b47..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_gender_identities/Grom_Node_has_all_the_required_objects/returns_the_contact_points_for_a_Grom_Node_object_of_type_Person.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_gender_identities/Grom_Node_has_no_gender_identities/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_gender_identities/Grom_Node_has_no_gender_identities/returns_an_empty_array.yml deleted file mode 100644 index 83c5b47..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_gender_identities/Grom_Node_has_no_gender_identities/returns_an_empty_array.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_given_name/Grom_Node_has_all_the_required_objects/returns_the_given_name_for_a_Grom_Node_objects_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_given_name/Grom_Node_has_all_the_required_objects/returns_the_given_name_for_a_Grom_Node_objects_of_type_Person.yml deleted file mode 100644 index 0652b95..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_given_name/Grom_Node_has_all_the_required_objects/returns_the_given_name_for_a_Grom_Node_objects_of_type_Person.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 62a3c7a6-52cd-4501-a036-2d90b69b2e1a - X-Runtime: - - '0.052189' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:24 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_given_name/Grom_Node_has_no_personGivenName/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_given_name/Grom_Node_has_no_personGivenName/returns_an_empty_string.yml deleted file mode 100644 index 1cb5571..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_given_name/Grom_Node_has_no_personGivenName/returns_an_empty_string.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - dfd3e163-29e0-4ae6-93b6-053c569f8752 - X-Runtime: - - '0.082693' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:38:25 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_houses/Grom_Node_has_all_the_required_objects/returns_the_houses_for_a_Grom_Node_object_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_houses/Grom_Node_has_all_the_required_objects/returns_the_houses_for_a_Grom_Node_object_of_type_Person.yml deleted file mode 100644 index 901d7e2..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_houses/Grom_Node_has_all_the_required_objects/returns_the_houses_for_a_Grom_Node_object_of_type_Person.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_houses/Grom_Node_has_all_the_required_objects_house_incumbencies_/returns_the_houses_for_a_Grom_Node_object_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_houses/Grom_Node_has_all_the_required_objects_house_incumbencies_/returns_the_houses_for_a_Grom_Node_object_of_type_Person.yml deleted file mode 100644 index 9cb0af9..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_houses/Grom_Node_has_all_the_required_objects_house_incumbencies_/returns_the_houses_for_a_Grom_Node_object_of_type_Person.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"9b58a1743756de6ab9ca4d47262ea1d0" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - bf9cef78-a13c-4253-8bee-e79d36feb196 - X-Runtime: - - '0.303393' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - . - . - "2001-06-30"^^ . - . - . - "Crossbench" . - . - "2001-06-30"^^ . - . - . - "House of Lords" . - http_version: - recorded_at: Tue, 07 Mar 2017 11:18:02 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_houses/Grom_Node_has_no_houses/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_houses/Grom_Node_has_no_houses/returns_an_empty_array.yml deleted file mode 100644 index 402b8e1..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_houses/Grom_Node_has_no_houses/returns_an_empty_array.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 768eb85a-156b-4e95-98d8-3a7841f68bab - X-Runtime: - - '0.062884' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:22:23 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_incumbencies_for_a_Grom_Node_object_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_incumbencies_for_a_Grom_Node_object_of_type_Person.yml deleted file mode 100644 index d7d3914..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_incumbencies_for_a_Grom_Node_object_of_type_Person.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_incumbencies/Grom_Node_has_no_incumbencies/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_incumbencies/Grom_Node_has_no_incumbencies/returns_an_empty_array.yml deleted file mode 100644 index 9f573ce..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_incumbencies/Grom_Node_has_no_incumbencies/returns_an_empty_array.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 768eb85a-156b-4e95-98d8-3a7841f68bab - X-Runtime: - - '0.062884' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:22:23 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_other_name/Grom_Node_has_all_the_required_objects/returns_the_other_name_for_a_Grom_Node_objects_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_other_name/Grom_Node_has_all_the_required_objects/returns_the_other_name_for_a_Grom_Node_objects_of_type_Person.yml deleted file mode 100644 index 8ee31ba..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_other_name/Grom_Node_has_all_the_required_objects/returns_the_other_name_for_a_Grom_Node_objects_of_type_Person.yml +++ /dev/null @@ -1,62 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"43209a22ba8a13c96d18e0c42d035bf7" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 874faef7-6f76-4554-8120-299e4ce4b47c - X-Runtime: - - '0.074821' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1950-10-08"^^ . - "Person 1 - givenName" . - "Person 1 - otherName" . - "Person 1 - familyName" . - . - . - . - . - . - "M" . - . - "Crossbench" . - . - "1989-09-19"^^ . - . - http_version: - recorded_at: Tue, 07 Feb 2017 15:09:48 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_other_name/Grom_Node_has_no_personGivenName/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_other_name/Grom_Node_has_no_personGivenName/returns_an_empty_string.yml deleted file mode 100644 index 9662ddc..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_other_name/Grom_Node_has_no_personGivenName/returns_an_empty_string.yml +++ /dev/null @@ -1,64 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/08a3dfac-652a-44d6-8a43-00bb13c60e47 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"43209a22ba8a13c96d18e0c42d035bf7" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4c351ce0-8a27-4c8b-b0a0-16f406bfa40a - X-Runtime: - - '0.072279' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1938-12-08"^^ . - "Person 1 - givenName" . - "Person 1 - otherName" . - "Person 1 - familyName" . - . - . - . - . - . - "M" . - . - "Crossbench" . - . - "1989-09-19"^^ . - . - . - - http_version: - recorded_at: Tue, 07 Feb 2017 15:09:48 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_parties/Grom_Node_has_all_the_required_objects/returns_the_parties_for_a_Grom_Node_objects_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_parties/Grom_Node_has_all_the_required_objects/returns_the_parties_for_a_Grom_Node_objects_of_type_Person.yml deleted file mode 100644 index 0a409a9..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_parties/Grom_Node_has_all_the_required_objects/returns_the_parties_for_a_Grom_Node_objects_of_type_Person.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 2c0117f0-74a0-40d2-a30d-261187fb56bd - X-Runtime: - - '0.047721' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:58:10 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_parties/Grom_Node_has_no_parties/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_parties/Grom_Node_has_no_parties/returns_an_empty_array.yml deleted file mode 100644 index 42b5f66..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_parties/Grom_Node_has_no_parties/returns_an_empty_array.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 42129faa-bbc2-4db5-a0a3-4b7067bfd420 - X-Runtime: - - '0.062543' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 15:58:10 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_party_memberships/Grom_Node_has_all_the_required_objects/returns_the_party_memberships_for_a_Grom_Node_object_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_party_memberships/Grom_Node_has_all_the_required_objects/returns_the_party_memberships_for_a_Grom_Node_object_of_type_Person.yml deleted file mode 100644 index 83c5b47..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_party_memberships/Grom_Node_has_all_the_required_objects/returns_the_party_memberships_for_a_Grom_Node_object_of_type_Person.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_party_memberships/Grom_Node_has_no_party_memberships/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_party_memberships/Grom_Node_has_no_party_memberships/returns_an_empty_array.yml deleted file mode 100644 index 83c5b47..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_party_memberships/Grom_Node_has_no_party_memberships/returns_an_empty_array.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 88a81d4b-bed6-4f9e-8a98-a38b7685fc10 - X-Runtime: - - '0.094576' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - - http_version: - recorded_at: Mon, 06 Feb 2017 15:15:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_seat_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_seat_incumbencies_for_a_Grom_Node_object_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_seat_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_seat_incumbencies_for_a_Grom_Node_object_of_type_Person.yml deleted file mode 100644 index 60c3440..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_seat_incumbencies/Grom_Node_has_all_the_required_objects/returns_the_seat_incumbencies_for_a_Grom_Node_object_of_type_Person.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 65161638-faf0-4d78-b76d-3af61d192d19 - X-Runtime: - - '0.051414' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:01:04 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_seat_incumbencies/Grom_Node_has_no_seat_incumbencies/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_seat_incumbencies/Grom_Node_has_no_seat_incumbencies/returns_an_empty_array.yml deleted file mode 100644 index 8f43070..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_seat_incumbencies/Grom_Node_has_no_seat_incumbencies/returns_an_empty_array.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 7828efff-c808-4bf9-b4b3-ec76ea6575e8 - X-Runtime: - - '0.050491' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:01:04 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_seats/Grom_Node_has_all_the_required_objects/returns_the_seats_for_a_Grom_Node_object_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_seats/Grom_Node_has_all_the_required_objects/returns_the_seats_for_a_Grom_Node_object_of_type_Person.yml deleted file mode 100644 index 63d3481..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_seats/Grom_Node_has_all_the_required_objects/returns_the_seats_for_a_Grom_Node_object_of_type_Person.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 31cb89d4-44d2-43dd-8c62-53b969afd07c - X-Runtime: - - '0.052103' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:02:59 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_seats/Grom_Node_has_no_seats/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_seats/Grom_Node_has_no_seats/returns_an_empty_array.yml deleted file mode 100644 index 225ec9e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_seats/Grom_Node_has_no_seats/returns_an_empty_array.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - c2a0fd74-66e9-47e5-88a7-91fb989499f1 - X-Runtime: - - '0.048755' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:02:59 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_sort_name/Grom_Node_has_all_the_required_objects/returns_the_given_sort_name_for_a_Grom_Node_objects_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_sort_name/Grom_Node_has_all_the_required_objects/returns_the_given_sort_name_for_a_Grom_Node_objects_of_type_Person.yml deleted file mode 100644 index acd9499..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_sort_name/Grom_Node_has_all_the_required_objects/returns_the_given_sort_name_for_a_Grom_Node_objects_of_type_Person.yml +++ /dev/null @@ -1,58 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"29fb3c38f03bd82ab2e2bac370d2f021" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b42f06d5-2dad-43ec-a129-f23e352ce934 - X-Runtime: - - '1.728133' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - "Person 1 - listAs" . - . - "Person 2 - givenName" . - "Person 2 - familyName" . - "Person 2 - listAs" . - . - "Person 3 - givenName" . - "Person 3 - familyName" . - "Person 3 - listAs" . - http_version: - recorded_at: Tue, 14 Mar 2017 11:38:34 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_sort_name/Grom_Node_has_no_listAs/returns_an_empty_string.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_sort_name/Grom_Node_has_no_listAs/returns_an_empty_string.yml deleted file mode 100644 index df127cd..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_sort_name/Grom_Node_has_no_listAs/returns_an_empty_string.yml +++ /dev/null @@ -1,55 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"29fb3c38f03bd82ab2e2bac370d2f021" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b42f06d5-2dad-43ec-a129-f23e352ce934 - X-Runtime: - - '1.728133' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - "Person 2 - givenName" . - "Person 2 - familyName" . - . - "Person 3 - givenName" . - "Person 3 - familyName" . - http_version: - recorded_at: Tue, 14 Mar 2017 11:38:34 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_a_current_house_incumbency/returns_the_status_Current_Lord.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_a_current_house_incumbency/returns_the_status_Current_Lord.yml deleted file mode 100644 index ba299bf..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_a_current_house_incumbency/returns_the_status_Current_Lord.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/841a4a1f-965a-4009-8cbc-dfc9e350fe0e - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"9b58a1743756de6ab9ca4d47262ea1d0" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - bf9cef78-a13c-4253-8bee-e79d36feb196 - X-Runtime: - - '0.303393' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - . - . - "2001-06-30"^^ . - . - . - "Crossbench" . - . - "2001-06-30"^^ . - . - . - "House of Lords" . - http_version: - recorded_at: Tue, 07 Mar 2017 11:18:02 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_a_current_incumbency/returns_the_status_Current_Member.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_a_current_incumbency/returns_the_status_Current_Member.yml deleted file mode 100644 index a997dea..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_a_current_incumbency/returns_the_status_Current_Member.yml +++ /dev/null @@ -1,62 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/841a4a1f-965a-4009-8cbc-dfc9e350fe0e - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"b83ee09dfe99ff279ac3764f89bc5804" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - d3b40875-b049-4181-80d4-a4306970b70d - X-Runtime: - - '0.378610' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - . - . - "2001-06-30"^^ . - . - . - . - "Crossbench" . - . - "2001-06-30"^^ . - . - . - "House of Lords" . - http_version: - recorded_at: Thu, 09 Mar 2017 16:34:33 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_a_current_seat_incumbency/returns_the_status_Current_MP.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_a_current_seat_incumbency/returns_the_status_Current_MP.yml deleted file mode 100644 index 2742183..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_a_current_seat_incumbency/returns_the_status_Current_MP.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/1921fc4a-6867-48fa-a4f4-6df05be005ce - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"146a343a18ebe69de9fbce8ee4750929" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - d9aaab67-710a-4289-88f2-8de0a484d589 - X-Runtime: - - '0.586146' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - "Hackney North and Stoke Newington" . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - . - . - . - . - "Labour" . - . - "1987-06-11"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-05-07"^^ . - . - . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - "Hackney North and Stoke Newington" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Hackney North and Stoke Newington" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - . - "2015-05-07"^^ . - . - http_version: - recorded_at: Tue, 07 Mar 2017 11:07:03 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_house_incumbencies_and_seat_incumbencies_but_no_current_incumbency/returns_the_statuses_Former_Lord_and_Former_MP.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_house_incumbencies_and_seat_incumbencies_but_no_current_incumbency/returns_the_statuses_Former_Lord_and_Former_MP.yml deleted file mode 100644 index 000bcf0..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_house_incumbencies_and_seat_incumbencies_but_no_current_incumbency/returns_the_statuses_Former_Lord_and_Former_MP.yml +++ /dev/null @@ -1,130 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/90558d1f-ea34-4c44-b3ad-ed9c98a557d1 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"00eb7b2e841f8928e07fb6021e4ca815" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b7904964-2528-464d-9edf-1a776eb9f952 - X-Runtime: - - '0.374040' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - . - . - "2013-04-08"^^ . - "1992-06-26"^^ . - . - . - "Conservative" . - . - "1992-06-26"^^ . - "2013-04-08"^^ . - . - . - "House of Lords" . - . - . - "1959-10-08"^^ . - "1992-04-09"^^ . - . - . - . - "Finchley" . - . - "1964-10-15"^^ . - "1959-10-08"^^ . - . - . - . - . - . - "House of Commons" . - . - . - "1966-03-31"^^ . - "1964-10-15"^^ . - . - . - . - "1970-06-18"^^ . - "1966-03-31"^^ . - . - . - . - "1974-02-28"^^ . - "1970-06-18"^^ . - . - . - . - "Finchley" . - . - "1974-10-10"^^ . - "1974-02-28"^^ . - . - . - . - . - . - . - "1979-05-03"^^ . - "1974-10-10"^^ . - . - . - . - "1983-06-09"^^ . - "1979-05-03"^^ . - . - . - . - "Finchley" . - . - "1987-06-11"^^ . - "1983-06-09"^^ . - . - . - . - . - . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - http_version: - recorded_at: Tue, 07 Mar 2017 12:55:10 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_house_incumbencies_but_no_current_house_incumbency/returns_the_status_Former_Lord.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_house_incumbencies_but_no_current_house_incumbency/returns_the_status_Former_Lord.yml deleted file mode 100644 index f77ba29..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_house_incumbencies_but_no_current_house_incumbency/returns_the_status_Former_Lord.yml +++ /dev/null @@ -1,63 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/99ceb32e-2e16-42a0-904d-c6a7e3a9f217 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"af33a10508cf04460c82d7921eb42e7a" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 659af43c-6a12-4e9f-a4ff-4663dc8e516a - X-Runtime: - - '0.273465' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - . - . - "1997-12-21"^^ . - "1965-06-22"^^ . - . - . - "Crossbench" . - . - "1965-07-07"^^ . - "1997-12-21"^^ . - . - . - "House of Lords" . - http_version: - recorded_at: Tue, 07 Mar 2017 11:23:43 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_no_current_incumbency/returns_the_status_Former_Member.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_no_current_incumbency/returns_the_status_Former_Member.yml deleted file mode 100644 index 4e6a523..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_no_current_incumbency/returns_the_status_Former_Member.yml +++ /dev/null @@ -1,78 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/5fe4df31-fa20-40cc-8cf2-f9d731e0be91 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"4698e5415eef6350549a2a4d348d4df7" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - c2426654-ccbe-4f5d-bec7-128e0a37434e - X-Runtime: - - '0.235172' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - . - . - "Montgomeryshire" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - "Liberal Democrat" . - . - "1997-05-01"^^ . - . - . - "House of Commons" . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - http_version: - recorded_at: Thu, 09 Mar 2017 16:34:33 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_no_membership_data/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_no_membership_data/returns_an_empty_array.yml deleted file mode 100644 index 02b60e7..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_no_membership_data/returns_an_empty_array.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/841a4a1f-965a-4009-8cbc-dfc9e350fe0e - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"9b58a1743756de6ab9ca4d47262ea1d0" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b2b864ac-44da-40c0-8681-9367b79901fd - X-Runtime: - - '0.272094' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - . - "Crossbench" . - . - "2001-06-30"^^ . - . - . - "House of Lords" . - http_version: - recorded_at: Tue, 07 Mar 2017 11:16:23 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_seat_incumbencies_and_a_current_house_incumbency/returns_the_statuses_Former_MP_and_Current_Lord.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_seat_incumbencies_and_a_current_house_incumbency/returns_the_statuses_Former_MP_and_Current_Lord.yml deleted file mode 100644 index ae8f154..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_seat_incumbencies_and_a_current_house_incumbency/returns_the_statuses_Former_MP_and_Current_Lord.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/7c511a2b-9ce2-4001-8ee5-71ae734c52d6 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"ffccf6e96d4e830161035edfaf7418aa" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - df1171fc-e81a-4319-a01f-a4be1ae5dcca - X-Runtime: - - '0.319584' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - . - . - "2015-10-27"^^ . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Lords" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "House of Commons" . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - http_version: - recorded_at: Tue, 07 Mar 2017 12:51:46 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_seat_incumbencies_but_no_current_seat_incumbency/returns_the_status_Former_MP.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_seat_incumbencies_but_no_current_seat_incumbency/returns_the_status_Former_MP.yml deleted file mode 100644 index f6a98d1..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_Person/_statuses/Grom_Node_has_seat_incumbencies_but_no_current_seat_incumbency/returns_the_status_Former_MP.yml +++ /dev/null @@ -1,77 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/5fe4df31-fa20-40cc-8cf2-f9d731e0be91 - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"ad2665c253054dc8829ce996ada31320" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - a4a7330b-937c-49fa-8329-a2af37baaf5f - X-Runtime: - - '0.385237' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - . - . - "Montgomeryshire" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - "Liberal Democrat" . - . - "1997-05-01"^^ . - . - . - "House of Commons" . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - http_version: - recorded_at: Tue, 07 Mar 2017 11:20:36 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PostalAddress/_full_address/Grom_Node_has_all_the_required_objects/returns_the_full_address_for_a_Grom_Node_object_of_type_PostalAddress.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_PostalAddress/_full_address/Grom_Node_has_all_the_required_objects/returns_the_full_address_for_a_Grom_Node_object_of_type_PostalAddress.yml deleted file mode 100644 index 8958335..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PostalAddress/_full_address/Grom_Node_has_all_the_required_objects/returns_the_full_address_for_a_Grom_Node_object_of_type_PostalAddress.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/8d895ffc-c2bf-43d2-b756-95ab3e987919/contact_point - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"d14a442d4be722e14f23bb3657d3c40d" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4b176b77-aceb-473e-89df-ecc4f91a808a - X-Runtime: - - '0.040606' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - . - "North Devon" . - . - . - . - . - . - "peter.heatonjones.mp@parliament.uk" . - "020 7219 5728" . - . - . - "SW1A 0AA" . - "House of Commons" . - "London" . - http_version: - recorded_at: Tue, 07 Feb 2017 16:47:01 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PostalAddress/_full_address/Grom_Node_has_no_postal_addresses/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_PostalAddress/_full_address/Grom_Node_has_no_postal_addresses/returns_an_empty_array.yml deleted file mode 100644 index 4c1f5b9..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_PostalAddress/_full_address/Grom_Node_has_no_postal_addresses/returns_an_empty_array.yml +++ /dev/null @@ -1,62 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/constituencies/8d895ffc-c2bf-43d2-b756-95ab3e987919/contact_point - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"d14a442d4be722e14f23bb3657d3c40d" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4b176b77-aceb-473e-89df-ecc4f91a808a - X-Runtime: - - '0.040606' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - . - "North Devon" . - . - . - . - . - . - "peter.heatonjones.mp@parliament.uk" . - "020 7219 5728" . - . - . - "SW1A 0AA" . - "House of Commons" . - "London" . - . - http_version: - recorded_at: Tue, 07 Feb 2017 16:47:01 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_constituency/Grom_Node_has_all_the_required_objects/returns_the_constituency_for_a_Grom_Node_object_of_type_SeatIncumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_constituency/Grom_Node_has_all_the_required_objects/returns_the_constituency_for_a_Grom_Node_object_of_type_SeatIncumbency.yml deleted file mode 100644 index 7a3849a..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_constituency/Grom_Node_has_all_the_required_objects/returns_the_constituency_for_a_Grom_Node_object_of_type_SeatIncumbency.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b4c58891-bcbb-4991-8104-34e25d0fca3d - X-Runtime: - - '0.048442' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:08:04 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_constituency/Grom_Node_has_no_constituency/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_constituency/Grom_Node_has_no_constituency/returns_nil.yml deleted file mode 100644 index 522830d..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_constituency/Grom_Node_has_no_constituency/returns_nil.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b4c58891-bcbb-4991-8104-34e25d0fca3d - X-Runtime: - - '0.048442' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:08:04 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_contact_points/seat_incumbency_has_contact_points/returns_an_array_of_contact_points.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_contact_points/seat_incumbency_has_contact_points/returns_an_array_of_contact_points.yml deleted file mode 100644 index 489ce3c..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_contact_points/seat_incumbency_has_contact_points/returns_an_array_of_contact_points.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 7f21f0bc-da16-466c-b2cd-cecfb56ec122 - X-Runtime: - - '0.058605' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - . - "North Devon" . - . - . - . - . - . - "example@parliament.uk" . - "020 1234 5678" . - . - . - "SW1A 0AA" . - "House of Commons" . - "London" . - http_version: - recorded_at: Wed, 08 Feb 2017 10:19:12 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_contact_points/seat_incumbency_has_no_contact_points/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_contact_points/seat_incumbency_has_no_contact_points/returns_an_empty_array.yml deleted file mode 100644 index d9e6fb6..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_contact_points/seat_incumbency_has_no_contact_points/returns_an_empty_array.yml +++ /dev/null @@ -1,60 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 7f21f0bc-da16-466c-b2cd-cecfb56ec122 - X-Runtime: - - '0.058605' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - . - "North Devon" . - . - . - . - . - "example@parliament.uk" . - "020 1234 5678" . - . - . - "SW1A 0AA" . - "House of Commons" . - "London" . - http_version: - recorded_at: Wed, 08 Feb 2017 10:19:12 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_former_seat_incumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_former_seat_incumbency.yml deleted file mode 100644 index db51a1e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_current_/Grom_Node_returns_the_correct_value_for_a_current_or_former_seat_incumbency.yml +++ /dev/null @@ -1,107 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b6a6ffc1-3839-431f-b313-092afa1953c7 - X-Runtime: - - '0.049057' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Tessa" . - "Jowell" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:50:49 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_end_date/seat_incumbency_has_an_end_date/returns_the_end_date_of_the_seat_incumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_end_date/seat_incumbency_has_an_end_date/returns_the_end_date_of_the_seat_incumbency.yml deleted file mode 100644 index 3e4816e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_end_date/seat_incumbency_has_an_end_date/returns_the_end_date_of_the_seat_incumbency.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b4c58891-bcbb-4991-8104-34e25d0fca3d - X-Runtime: - - '0.048442' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:08:04 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_end_date/seat_incumbency_has_no_end_date/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_end_date/seat_incumbency_has_no_end_date/returns_nil.yml deleted file mode 100644 index 7de250a..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_end_date/seat_incumbency_has_no_end_date/returns_nil.yml +++ /dev/null @@ -1,106 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 11a65001-29a9-403e-b8fa-bf3230b311e2 - X-Runtime: - - '0.046311' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1950-10-17"^^ . - "Person - givenName" . - "Person - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - http_version: - recorded_at: Thu, 09 Feb 2017 14:20:35 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_former_/Grom_Node_returns_the_correct_value_for_a_former_or_current_seat_incumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_former_/Grom_Node_returns_the_correct_value_for_a_former_or_current_seat_incumbency.yml deleted file mode 100644 index db51a1e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_former_/Grom_Node_returns_the_correct_value_for_a_former_or_current_seat_incumbency.yml +++ /dev/null @@ -1,107 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b6a6ffc1-3839-431f-b313-092afa1953c7 - X-Runtime: - - '0.049057' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Tessa" . - "Jowell" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:50:49 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_house/Grom_Node_has_all_the_required_objects/returns_the_house_for_a_Grom_Node_object_of_type_SeatIncumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_house/Grom_Node_has_all_the_required_objects/returns_the_house_for_a_Grom_Node_object_of_type_SeatIncumbency.yml deleted file mode 100644 index 7a3849a..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_house/Grom_Node_has_all_the_required_objects/returns_the_house_for_a_Grom_Node_object_of_type_SeatIncumbency.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b4c58891-bcbb-4991-8104-34e25d0fca3d - X-Runtime: - - '0.048442' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:08:04 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_house/Grom_Node_has_no_house/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_house/Grom_Node_has_no_house/returns_nil.yml deleted file mode 100644 index 522830d..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_house/Grom_Node_has_no_house/returns_nil.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b4c58891-bcbb-4991-8104-34e25d0fca3d - X-Runtime: - - '0.048442' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:08:04 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_member/Grom_Node_has_all_the_required_objects/returns_the_member_for_a_Grom_Node_object_of_type_SeatIncumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_member/Grom_Node_has_all_the_required_objects/returns_the_member_for_a_Grom_Node_object_of_type_SeatIncumbency.yml deleted file mode 100644 index ac90a9e..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_member/Grom_Node_has_all_the_required_objects/returns_the_member_for_a_Grom_Node_object_of_type_SeatIncumbency.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b4c58891-bcbb-4991-8104-34e25d0fca3d - X-Runtime: - - '0.048442' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:08:04 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_member/Grom_Node_has_no_member/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_member/Grom_Node_has_no_member/returns_nil.yml deleted file mode 100644 index 7a3849a..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_member/Grom_Node_has_no_member/returns_nil.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b4c58891-bcbb-4991-8104-34e25d0fca3d - X-Runtime: - - '0.048442' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:08:04 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_seat/Grom_Node_has_all_the_required_objects/returns_the_seat_for_a_Grom_Node_object_of_type_SeatIncumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_seat/Grom_Node_has_all_the_required_objects/returns_the_seat_for_a_Grom_Node_object_of_type_SeatIncumbency.yml deleted file mode 100644 index 7a3849a..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_seat/Grom_Node_has_all_the_required_objects/returns_the_seat_for_a_Grom_Node_object_of_type_SeatIncumbency.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b4c58891-bcbb-4991-8104-34e25d0fca3d - X-Runtime: - - '0.048442' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:08:04 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_seat/Grom_Node_has_no_seats/returns_an_empty_array.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_seat/Grom_Node_has_no_seats/returns_an_empty_array.yml deleted file mode 100644 index 522830d..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_seat/Grom_Node_has_no_seats/returns_an_empty_array.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b4c58891-bcbb-4991-8104-34e25d0fca3d - X-Runtime: - - '0.048442' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Person 1 - givenName" . - "Person 1 - familyName" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - http_version: - recorded_at: Mon, 06 Feb 2017 16:08:04 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_start_date/seat_incumbency_has_a_start_date/returns_the_start_date_of_the_seat_incumbency.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_start_date/seat_incumbency_has_a_start_date/returns_the_start_date_of_the_seat_incumbency.yml deleted file mode 100644 index fb1ec46..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_start_date/seat_incumbency_has_a_start_date/returns_the_start_date_of_the_seat_incumbency.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 0d4172ec-8042-40f6-a433-9e59d7fca793 - X-Runtime: - - '0.405598' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Tessa" . - "Jowell" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - http_version: - recorded_at: Wed, 01 Mar 2017 14:57:12 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_start_date/seat_incumbency_has_no_start_date/returns_nil.yml b/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_start_date/seat_incumbency_has_no_start_date/returns_nil.yml deleted file mode 100644 index cf9bacd..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Decorator_SeatIncumbency/_start_date/seat_incumbency_has_no_start_date/returns_nil.yml +++ /dev/null @@ -1,107 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/626b57f9-6ef0-475a-ae12-40a44aca7eff - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"0d1204977f2acac07c059d95380c652e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - c71941f4-6805-4af3-a786-6935c3f9049e - X-Runtime: - - '0.318977' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "1947-09-17"^^ . - "Tessa" . - "Jowell" . - . - . - . - . - . - . - "F" . - . - "Dulwich" . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - . - . - "Labour" . - . - "1992-04-09"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-10-27"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2001-06-07"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Dulwich and West Norwood" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - http_version: - recorded_at: Wed, 01 Mar 2017 14:57:13 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_accepts_query_parameters/returns_a_Net_HTTPResponse.yml b/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_accepts_query_parameters/sets_the_query_parameters_correctly_when_passed_in.yml similarity index 50% rename from spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_accepts_query_parameters/returns_a_Net_HTTPResponse.yml rename to spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_accepts_query_parameters/sets_the_query_parameters_correctly_when_passed_in.yml index e0b309b..b53b64a 100644 --- a/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_accepts_query_parameters/returns_a_Net_HTTPResponse.yml +++ b/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_accepts_query_parameters/sets_the_query_parameters_correctly_when_passed_in.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://localhost:3030/people?id=3898&source=mnisId + uri: http://localhost:3030/people/lookup?id=3898&source=mnisId body: encoding: US-ASCII string: '' @@ -11,10 +11,9 @@ http_interactions: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" + - application/n-triples User-Agent: - Ruby - Host: - - localhost:3030 response: status: code: 200 @@ -29,21 +28,19 @@ http_interactions: Content-Type: - application/n-triples; charset=utf-8 Etag: - - W/"070ba81d6dda5d42fda1032187263084" + - W/"cef63e03e8318b86a5ac9edfcea4cec2" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - d49bec10-10ca-47be-9ac3-799d0cba9b1e + - 77ad78fd-da62-4ec7-9314-10dce39a01bc X-Runtime: - - '0.030821' + - '0.094125' Transfer-Encoding: - chunked body: encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - http_version: - recorded_at: Tue, 21 Feb 2017 17:08:52 GMT + string: " + .\n" + http_version: + recorded_at: Thu, 20 Apr 2017 11:13:03 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_204_and_/raises_a_Parliament_NoContentError.yml b/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_200/raises_a_Parliament_NoContentError.yml similarity index 72% rename from spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_204_and_/raises_a_Parliament_NoContentError.yml rename to spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_200/raises_a_Parliament_NoContentError.yml index d30872d..7af3b47 100644 --- a/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_204_and_/raises_a_Parliament_NoContentError.yml +++ b/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_200/raises_a_Parliament_NoContentError.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://localhost:3030/people/321f496b-5c8b-4455-ab49-a96e42b34739/parties/current + uri: http://localhost:3030/parties/x body: encoding: US-ASCII string: '' @@ -11,10 +11,9 @@ http_interactions: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" + - application/n-triples User-Agent: - Ruby - Host: - - localhost:3030 response: status: code: 204 @@ -29,12 +28,12 @@ http_interactions: Cache-Control: - no-cache X-Request-Id: - - 0a9c8350-d498-4b2d-a865-d11f491e87a2 + - 3381d189-6efa-4bc4-ba97-be87c9091078 X-Runtime: - - '0.086286' + - '0.140256' body: encoding: UTF-8 string: '' http_version: - recorded_at: Tue, 14 Feb 2017 10:40:31 GMT + recorded_at: Thu, 20 Apr 2017 14:56:41 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_200_and_/returns_a_Net_HTTPResponse.yml b/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_200/returns_a_Parliament_Response_BaseResponse.yml similarity index 98% rename from spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_200_and_/returns_a_Net_HTTPResponse.yml rename to spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_200/returns_a_Parliament_Response_BaseResponse.yml index 04c4ead..be6ea61 100644 --- a/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_200_and_/returns_a_Net_HTTPResponse.yml +++ b/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_200/returns_a_Parliament_Response_BaseResponse.yml @@ -32,9 +32,9 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - c6300663-a798-4e81-90bf-3d19f7380b39 + - 735e2381-b357-42dd-ba33-a8dd31167eb2 X-Runtime: - - '0.317661' + - '0.265427' Transfer-Encoding: - chunked body: @@ -79,5 +79,5 @@ http_interactions: . "Sinn Fein" . http_version: - recorded_at: Tue, 04 Apr 2017 14:55:59 GMT + recorded_at: Thu, 20 Apr 2017 14:56:41 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_204_and_/returns_a_Parliament_Response.yml b/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_204_and_/returns_a_Parliament_Response.yml deleted file mode 100644 index c8503d0..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Request_BaseRequest/_get/it_returns_a_status_code_of_204_and_/returns_a_Parliament_Response.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/321f496b-5c8b-4455-ab49-a96e42b34739/parties/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 204 - message: No Content - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Cache-Control: - - no-cache - X-Request-Id: - - 04296917-133d-45f4-9e1d-c4c70682ee43 - X-Runtime: - - '0.022145' - body: - encoding: UTF-8 - string: '' - http_version: - recorded_at: Mon, 13 Feb 2017 15:06:13 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Response/_sort_by/sorts_the_nodes_in_a_Parliament_Response_object_by_the_given_parameter.yml b/spec/fixtures/vcr_cassettes/Parliament_Request_UrlRequest/_query_url/makes_a_request_to_the_correctly_built_endpoint.yml similarity index 98% rename from spec/fixtures/vcr_cassettes/Parliament_Response/_sort_by/sorts_the_nodes_in_a_Parliament_Response_object_by_the_given_parameter.yml rename to spec/fixtures/vcr_cassettes/Parliament_Request_UrlRequest/_query_url/makes_a_request_to_the_correctly_built_endpoint.yml index 9910793..0d2ea6c 100644 --- a/spec/fixtures/vcr_cassettes/Parliament_Response/_sort_by/sorts_the_nodes_in_a_Parliament_Response_object_by_the_given_parameter.yml +++ b/spec/fixtures/vcr_cassettes/Parliament_Request_UrlRequest/_query_url/makes_a_request_to_the_correctly_built_endpoint.yml @@ -11,10 +11,9 @@ http_interactions: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" + - application/n-triples User-Agent: - Ruby - Host: - - localhost:3030 response: status: code: 200 @@ -29,13 +28,13 @@ http_interactions: Content-Type: - application/n-triples; charset=utf-8 Etag: - - W/"37ac52f2690ad6e0c10768647d43f918" + - W/"05e7a0e4523d4b7fd2d5c532758dd189" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - 80fc46e3-2cb1-4971-8b82-eae82c2db41f + - 5e6b946b-1e71-43b5-adef-cb0599adaa60 X-Runtime: - - '11.010270' + - '2.041267' Transfer-Encoding: - chunked body: @@ -93,6 +92,7 @@ http_interactions: . . "2010-07-15"^^ . + http_version: - recorded_at: Wed, 15 Mar 2017 15:27:46 GMT + recorded_at: Thu, 20 Apr 2017 11:55:10 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/confirms_that_each_Grom_Node_is_of_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/confirms_that_each_Grom_Node_is_of_type_Person.yml deleted file mode 100644 index 82b3ea9..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/confirms_that_each_Grom_Node_is_of_type_Person.yml +++ /dev/null @@ -1,100 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"fa950a6e269562ab5979350ba2595602" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24512dd6-d774-4406-ae09-d5b5a8373fe2 - X-Runtime: - - '0.661245' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - forename" . - "Person 1 - surname" . - . - . - . - "Constituency 1 - name" . - . - . - "Party 1 - name" . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 2 - forename" . - "Person 2 - surname" . - . - . - "Constituency 2 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 3 - forename" . - "Person 3 - surname" . - . - . - "Constituency 3 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - http_version: - recorded_at: Wed, 25 Jan 2017 10:46:58 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/filters_a_mixture_of_typed_nodes_and_blank_nodes.yml b/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/filters_a_mixture_of_typed_nodes_and_blank_nodes.yml deleted file mode 100644 index 8905533..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/filters_a_mixture_of_typed_nodes_and_blank_nodes.yml +++ /dev/null @@ -1,124 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - - application/n-triples - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"9dc79b6426182289fc121cc661ff8ef7" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - df20a843-38fe-44be-a36e-9959b9c4cf07 - X-Runtime: - - '1.968393' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - forename" . - "Person 1 - surname" . - . - . - . - "Constituency 1 - name" . - . - . - "Party 1 - name" . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 2 - forename" . - "Person 2 - surname" . - . - . - "Constituency 2 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 3 - forename" . - "Person 3 - surname" . - . - . - "Constituency 3 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - _:node132919 "C" . - _:node132920 "A" . - _:node132921 "M" . - _:node132922 "G" . - _:node132923 "R" . - _:node132924 "L" . - _:node132925 "H" . - _:node132926 "J" . - _:node132927 "B" . - _:node132928 "D" . - _:node132929 "T" . - _:node132930 "S" . - _:node132931 "E" . - _:node132932 "K" . - _:node132933 "F" . - _:node132934 "U" . - _:node132935 "P" . - _:node132936 "W" . - _:node132937 "V" . - _:node132938 "Q" . - _:node132939 "O" . - _:node132940 "N" . - _:node132941 "I" . - _:node132942 "Y" . - _:node132943 "Z" . - http_version: - recorded_at: Mon, 27 Mar 2017 09:00:18 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/filters_blank_nodes.yml b/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/filters_blank_nodes.yml deleted file mode 100644 index aa1a003..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/filters_blank_nodes.yml +++ /dev/null @@ -1,124 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - - application/n-triples - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"9dc79b6426182289fc121cc661ff8ef7" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - df20a843-38fe-44be-a36e-9959b9c4cf07 - X-Runtime: - - '1.968393' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - forename" . - "Person 1 - surname" . - . - . - . - "Constituency 1 - name" . - . - . - "Party 1 - name" . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 2 - forename" . - "Person 2 - surname" . - . - . - "Constituency 2 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 3 - forename" . - "Person 3 - surname" . - . - . - "Constituency 3 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - _:node132919 "C" . - _:node132920 "A" . - _:node132921 "M" . - _:node132922 "G" . - _:node132923 "R" . - _:node132924 "L" . - _:node132925 "H" . - _:node132926 "J" . - _:node132927 "B" . - _:node132928 "D" . - _:node132929 "T" . - _:node132930 "S" . - _:node132931 "E" . - _:node132932 "K" . - _:node132933 "F" . - _:node132934 "U" . - _:node132935 "P" . - _:node132936 "W" . - _:node132937 "V" . - _:node132938 "Q" . - _:node132939 "O" . - _:node132940 "N" . - _:node132941 "I" . - _:node132942 "Y" . - _:node132943 "Z" . - http_version: - recorded_at: Mon, 27 Mar 2017 09:00:18 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/filters_typed_nodes_from_a_mixture_of_typed_nodes_and_blank_nodes.yml b/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/filters_typed_nodes_from_a_mixture_of_typed_nodes_and_blank_nodes.yml deleted file mode 100644 index 8905533..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/filters_typed_nodes_from_a_mixture_of_typed_nodes_and_blank_nodes.yml +++ /dev/null @@ -1,124 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - - application/n-triples - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"9dc79b6426182289fc121cc661ff8ef7" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - df20a843-38fe-44be-a36e-9959b9c4cf07 - X-Runtime: - - '1.968393' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - forename" . - "Person 1 - surname" . - . - . - . - "Constituency 1 - name" . - . - . - "Party 1 - name" . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 2 - forename" . - "Person 2 - surname" . - . - . - "Constituency 2 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 3 - forename" . - "Person 3 - surname" . - . - . - "Constituency 3 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - _:node132919 "C" . - _:node132920 "A" . - _:node132921 "M" . - _:node132922 "G" . - _:node132923 "R" . - _:node132924 "L" . - _:node132925 "H" . - _:node132926 "J" . - _:node132927 "B" . - _:node132928 "D" . - _:node132929 "T" . - _:node132930 "S" . - _:node132931 "E" . - _:node132932 "K" . - _:node132933 "F" . - _:node132934 "U" . - _:node132935 "P" . - _:node132936 "W" . - _:node132937 "V" . - _:node132938 "Q" . - _:node132939 "O" . - _:node132940 "N" . - _:node132941 "I" . - _:node132942 "Y" . - _:node132943 "Z" . - http_version: - recorded_at: Mon, 27 Mar 2017 09:00:18 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_a_response_filtered_by_a_single_type.yml b/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_a_response_filtered_by_a_single_type.yml deleted file mode 100644 index 82b3ea9..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_a_response_filtered_by_a_single_type.yml +++ /dev/null @@ -1,100 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"fa950a6e269562ab5979350ba2595602" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24512dd6-d774-4406-ae09-d5b5a8373fe2 - X-Runtime: - - '0.661245' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - forename" . - "Person 1 - surname" . - . - . - . - "Constituency 1 - name" . - . - . - "Party 1 - name" . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 2 - forename" . - "Person 2 - surname" . - . - . - "Constituency 2 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 3 - forename" . - "Person 3 - surname" . - . - . - "Constituency 3 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - http_version: - recorded_at: Wed, 25 Jan 2017 10:46:58 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_array_of_arrays_of_objects_filtered_by_type_Party.yml b/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_array_of_arrays_of_objects_filtered_by_type_Party.yml deleted file mode 100644 index 37bca79..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_array_of_arrays_of_objects_filtered_by_type_Party.yml +++ /dev/null @@ -1,100 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"2505426358eb85f5dbcae2a82e4c5d01" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 9a5e0f2f-ee94-4300-9ab7-297f863824a9 - X-Runtime: - - '1.251670' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - forename" . - "Person 1 - surname" . - . - . - . - "Constituency 1 - name" . - . - . - "Party 1 - name" . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 2 - forename" . - "Person 2 - surname" . - . - . - "Constituency 2 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 3 - forename" . - "Person 3 - surname" . - . - . - "Constituency 3 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - http_version: - recorded_at: Tue, 24 Jan 2017 11:14:30 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_array_of_arrays_of_objects_filtered_by_type_Person.yml b/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_array_of_arrays_of_objects_filtered_by_type_Person.yml deleted file mode 100644 index 8e1ae3b..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_array_of_arrays_of_objects_filtered_by_type_Person.yml +++ /dev/null @@ -1,100 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"2505426358eb85f5dbcae2a82e4c5d01" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 1f6d09ee-daf9-43ab-a584-94b40c433bb2 - X-Runtime: - - '0.664406' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - forename" . - "Person 1 - surname" . - . - . - . - "Constituency 1 - name" . - . - . - "Party 1 - name" . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 2 - forename" . - "Person 2 - surname" . - . - . - "Constituency 2 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 3 - forename" . - "Person 3 - surname" . - . - . - "Constituency 3 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - http_version: - recorded_at: Tue, 24 Jan 2017 11:14:28 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_empty_array_of_response_objects_when_the_type_passed_in_does_not_exist.yml b/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_empty_array_of_response_objects_when_the_type_passed_in_does_not_exist.yml deleted file mode 100644 index 82b3ea9..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_empty_array_of_response_objects_when_the_type_passed_in_does_not_exist.yml +++ /dev/null @@ -1,100 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"fa950a6e269562ab5979350ba2595602" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24512dd6-d774-4406-ae09-d5b5a8373fe2 - X-Runtime: - - '0.661245' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - forename" . - "Person 1 - surname" . - . - . - . - "Constituency 1 - name" . - . - . - "Party 1 - name" . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 2 - forename" . - "Person 2 - surname" . - . - . - "Constituency 2 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 3 - forename" . - "Person 3 - surname" . - . - . - "Constituency 3 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - http_version: - recorded_at: Wed, 25 Jan 2017 10:46:58 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_empty_array_when_no_types_are_passed_in.yml b/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_empty_array_when_no_types_are_passed_in.yml deleted file mode 100644 index 7b52527..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_empty_array_when_no_types_are_passed_in.yml +++ /dev/null @@ -1,100 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"fa950a6e269562ab5979350ba2595602" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24512dd6-d774-4406-ae09-d5b5a8373fe2 - X-Runtime: - - '0.661245' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - forename" . - "Person 1 - surname" . - . - . - . - "Constituency 1 - name" . - . - . - "Party 1 - name" . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 2 - forename" . - "Person 2 - surname" . - . - . - "Constituency 2 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 3 - forename" . - "Person 3 - surname" . - . - . - "Constituency 3 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - http_version: - recorded_at: Wed, 25 Jan 2017 10:46:58 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_empty_array_when_the_response_is_empty.yml b/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_empty_array_when_the_response_is_empty.yml deleted file mode 100644 index 82b3ea9..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Response/_filter/returns_an_empty_array_when_the_response_is_empty.yml +++ /dev/null @@ -1,100 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/members/current - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"fa950a6e269562ab5979350ba2595602" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 24512dd6-d774-4406-ae09-d5b5a8373fe2 - X-Runtime: - - '0.661245' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person 1 - forename" . - "Person 1 - surname" . - . - . - . - "Constituency 1 - name" . - . - . - "Party 1 - name" . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 2 - forename" . - "Person 2 - surname" . - . - . - "Constituency 2 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - . - "Person 3 - forename" . - "Person 3 - surname" . - . - . - "Constituency 3 - name" . - . - . - . - "2016-05-03"^^ . - . - . - . - . - "2016-05-03"^^ . - . - . - http_version: - recorded_at: Wed, 25 Jan 2017 10:46:58 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/Parliament_Response/_reverse_sort_by/sorts_the_nodes_in_a_Parliament_Response_object_by_the_given_parameter.yml b/spec/fixtures/vcr_cassettes/Parliament_Response/_reverse_sort_by/sorts_the_nodes_in_a_Parliament_Response_object_by_the_given_parameter.yml deleted file mode 100644 index 1c6cac4..0000000 --- a/spec/fixtures/vcr_cassettes/Parliament_Response/_reverse_sort_by/sorts_the_nodes_in_a_Parliament_Response_object_by_the_given_parameter.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://localhost:3030/people/1921fc4a-6867-48fa-a4f4-6df05be005ce - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - Host: - - localhost:3030 - response: - status: - code: 200 - message: OK - headers: - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - Content-Type: - - application/n-triples; charset=utf-8 - Etag: - - W/"126b5d4f44d43c006888e1a5e3cbb221" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 858c78b8-7e73-4ffa-a077-cf4c6b11462d - X-Runtime: - - '0.380657' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: | - . - "Person - givenName" . - "Person - familyName" . - . - . - . - "Hackney North and Stoke Newington" . - . - "1992-04-09"^^ . - "1987-06-11"^^ . - . - . - . - . - . - "Labour" . - . - "1987-06-11"^^ . - "2015-03-30"^^ . - . - . - "House of Commons" . - . - . - "2015-05-07"^^ . - . - . - . - "1997-05-01"^^ . - "1992-04-09"^^ . - . - . - . - "Hackney North and Stoke Newington" . - . - "2001-06-07"^^ . - "1997-05-01"^^ . - . - . - . - . - . - . - "2005-05-05"^^ . - "2001-06-07"^^ . - . - . - . - "2010-05-06"^^ . - "2005-05-05"^^ . - . - . - . - "Hackney North and Stoke Newington" . - . - "2015-03-30"^^ . - "2010-05-06"^^ . - . - . - . - . - . - . - "2015-05-07"^^ . - . - http_version: - recorded_at: Wed, 15 Mar 2017 15:31:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/parliament/builder/base_response_builder_spec.rb b/spec/parliament/builder/base_response_builder_spec.rb index 9fb9d2f..ebde693 100644 --- a/spec/parliament/builder/base_response_builder_spec.rb +++ b/spec/parliament/builder/base_response_builder_spec.rb @@ -1,10 +1,10 @@ require_relative '../../spec_helper' describe Parliament::Builder::BaseResponseBuilder, vcr: true do - subject { Parliament::Builder::BaseResponseBuilder.new('hello world') } + subject { Parliament::Builder::BaseResponseBuilder.new(response: 'hello world') } context 'build' do - it 'returns a response' do - expect(subject.build).to eq('hello world') + it 'returns a Parliament::Response::BaseResponse' do + expect(subject.build).to be_a(Parliament::Response::BaseResponse) end end end \ No newline at end of file diff --git a/spec/parliament/builder/ntriple_response_builder_spec.rb b/spec/parliament/builder/ntriple_response_builder_spec.rb deleted file mode 100644 index 0855f12..0000000 --- a/spec/parliament/builder/ntriple_response_builder_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Builder::NTripleResponseBuilder, vcr: true do - let(:response) { Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030').people.members.current.get } - subject { Parliament::Builder::NTripleResponseBuilder.new(response) } - - context 'build' do - before(:each) do - @parliament_response = subject.build - end - - it 'returns a Parliament::Response object' do - expect(@parliament_response).to be_a(Parliament::Response) - end - - it 'returns 19 objects' do - expect(@parliament_response.size).to eq(19) - end - - it 'returns an array of Grom::Node objects' do - @parliament_response.each do |object| - expect(object).to be_a(Grom::Node) - end - end - end - - describe '#assign_decorator' do - it 'returns an object which has been decorated if a decorator is defined' do - - person = subject.build.select { |node| node.type == 'http://id.ukpds.org/schema/Person' }.first - - expect(person).to respond_to(:houses) - end - - it 'decorates nested objects' do - person = subject.build.select { |node| node.type == 'http://id.ukpds.org/schema/Person' }.first - - expect(person.memberHasSeatIncumbency.first).to respond_to(:seat) - end - end -end \ No newline at end of file diff --git a/spec/parliament/decorator/constituency_area_spec.rb b/spec/parliament/decorator/constituency_area_spec.rb deleted file mode 100644 index a227302..0000000 --- a/spec/parliament/decorator/constituency_area_spec.rb +++ /dev/null @@ -1,68 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Decorator::ConstituencyArea, vcr: true do - let(:id) { 'a2ce856d-ba0a-4508-9dd0-62feb54d3894' } - let(:response) { Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).constituencies(id).get } - - describe '#latitude' do - context 'constituency has a latitude' do - it 'returns the latitude of the constituency area' do - constituency_area_node = response.filter('http://id.ukpds.org/schema/ConstituencyArea')[0] - - expect(constituency_area_node).to respond_to(:latitude) - expect(constituency_area_node.latitude).to eq '53.4156316801' - end - end - - context 'constituency has no latitude' do - it 'returns an empty string' do - constituency_area_node = response.filter('http://id.ukpds.org/schema/ConstituencyArea')[1] - - expect(constituency_area_node).to respond_to(:latitude) - expect(constituency_area_node.latitude).to eq '' - end - end - end - - describe '#longitude' do - context 'constituency has a longitude' do - it 'returns the longitude of the constituency area' do - constituency_area_node = response.filter('http://id.ukpds.org/schema/ConstituencyArea')[0] - - expect(constituency_area_node).to respond_to(:longitude) - expect(constituency_area_node.longitude).to eq '-1.46711981738' - end - end - - context 'constituency has no longitude' do - it 'returns an empty string' do - constituency_area_node = response.filter('http://id.ukpds.org/schema/ConstituencyArea')[1] - - expect(constituency_area_node).to respond_to(:longitude) - expect(constituency_area_node.longitude).to eq '' - end - end - end - - describe '#polygon' do - context 'constituency has a polygon' do - it 'returns the polygon of the constituency area' do - constituency_area_node = response.filter('http://id.ukpds.org/schema/ConstituencyArea')[0] - - expect(constituency_area_node).to respond_to(:polygon) - expected_polygon = 'Polygon((-1.50958909420 53.39937821832,-1.50978426399 53.39941048368))' - expect(constituency_area_node.polygon).to eq expected_polygon - end - end - - context 'constituency has no polygon' do - it 'returns an empty string' do - constituency_area_node = response.filter('http://id.ukpds.org/schema/ConstituencyArea')[1] - - expect(constituency_area_node).to respond_to(:polygon) - expect(constituency_area_node.polygon).to eq '' - end - end - end -end diff --git a/spec/parliament/decorator/constituency_group_spec.rb b/spec/parliament/decorator/constituency_group_spec.rb deleted file mode 100644 index 937d88f..0000000 --- a/spec/parliament/decorator/constituency_group_spec.rb +++ /dev/null @@ -1,186 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Decorator::ConstituencyGroup, vcr: true do - let(:id) { 'a2ce856d-ba0a-4508-9dd0-62feb54d3894' } - let(:response) do - Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).constituencies(id).get - end - - describe '#name' do - context 'constituency has a name' do - it 'returns the name of the constituency' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[0] - - expect(constituency_node).to respond_to(:name) - expect(constituency_node.name).to eq 'Sheffield, Brightside and Hillsborough' - end - end - - context 'constituency has no name' do - it 'returns an empty string' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[1] - - expect(constituency_node).to respond_to(:name) - expect(constituency_node.name).to eq '' - end - end - end - - describe '#start_date' do - context 'constituency has a start date' do - it 'returns the start date of the constituency' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[0] - - expect(constituency_node).to respond_to(:start_date) - expect(constituency_node.start_date).to eq(DateTime.new(2010, 5, 6)) - end - end - - context 'constituency has no start date' do - it 'returns nil' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[1] - - expect(constituency_node).to respond_to(:start_date) - expect(constituency_node.start_date).to be(nil) - end - end - end - - describe '#end_date' do - context 'constituency has an end date' do - it 'returns the end date of the constituency' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[0] - - expect(constituency_node).to respond_to(:end_date) - expect(constituency_node.end_date).to eq(DateTime.new(2011, 5, 6)) - end - end - - context 'constituency has no end date' do - it 'returns nil' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[1] - - expect(constituency_node).to respond_to(:end_date) - expect(constituency_node.end_date).to be(nil) - end - end - end - - describe '#seats' do - context 'constituency has house seats' do - it 'returns an array of house seats' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[0] - - expect(constituency_node).to respond_to(:seats) - expect(constituency_node.seats.size).to eq 1 - expect(constituency_node.seats.first.type).to eq 'http://id.ukpds.org/schema/HouseSeat' - end - end - - context 'constituency has no house seats' do - it 'returns an empty array' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[1] - - expect(constituency_node).to respond_to(:seats) - expect(constituency_node.seats).to eq [] - end - end - end - - describe '#seat_incumbencies' do - context 'constituency has seat incumbencies' do - it 'returns an array of seat incumbencies' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[0] - - expect(constituency_node).to respond_to(:seat_incumbencies) - expect(constituency_node.seat_incumbencies.size).to eq 3 - expect(constituency_node.seat_incumbencies.first.type).to eq 'http://id.ukpds.org/schema/SeatIncumbency' - end - end - - context 'constituency has no seat incumbencies' do - it 'returns an empty array' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[1] - - expect(constituency_node).to respond_to(:seat_incumbencies) - expect(constituency_node.seat_incumbencies).to eq [] - end - end - end - - describe '#members' do - context 'constituency has members' do - it 'returns an array of members' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[0] - - expect(constituency_node).to respond_to(:members) - expect(constituency_node.members.size).to eq 3 - expect(constituency_node.members.first.type).to eq 'http://id.ukpds.org/schema/Person' - end - end - - context 'constituency has no seat incumbencies' do - it 'returns an empty array' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[1] - - expect(constituency_node).to respond_to(:members) - expect(constituency_node.members).to eq [] - end - end - end - - describe '#area' do - context 'constituency has an area' do - it 'returns the area' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[0] - - expect(constituency_node).to respond_to(:area) - expect(constituency_node.area.type).to eq 'http://id.ukpds.org/schema/ConstituencyArea' - end - end - - context 'constituency has no seat incumbencies' do - it 'returns nil' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[1] - - expect(constituency_node).to respond_to(:area) - expect(constituency_node.area).to be_nil - end - end - end - - describe '#contact_points' do - context 'constituency has contact points' do - it 'returns an array of contact points' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup')[0] - - expect(constituency_node).to respond_to(:contact_points) - expect(constituency_node.contact_points.size).to eq 1 - expect(constituency_node.contact_points.first.type).to eq 'http://id.ukpds.org/schema/ContactPoint' - end - end - - context 'constituency has no contact points' do - it 'returns an empty array' do - constituency_node = response.filter('http://id.ukpds.org/schema/ConstituencyGroup').first - - expect(constituency_node).to respond_to(:contact_points) - expect(constituency_node.contact_points).to eq [] - end - end - end - - describe '#current?' do - it 'Grom::Node returns the correct value for a current or non current constituency' do - id = '1921fc4a-6867-48fa-a4f4-6df05be005ce' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).constituencies.get - constituency_nodes = response.filter('http://id.ukpds.org/schema/ConstituencyGroup') - - constituency_results = constituency_nodes.map(&:current?) - - expect(constituency_results).to eq([false, false, true]) - end - end -end diff --git a/spec/parliament/decorator/contact_point_spec.rb b/spec/parliament/decorator/contact_point_spec.rb deleted file mode 100644 index 3e0447c..0000000 --- a/spec/parliament/decorator/contact_point_spec.rb +++ /dev/null @@ -1,133 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Decorator::ContactPoint, vcr: true do - let(:response) do - Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people('08a3dfac-652a-44d6-8a43-00bb13c60e47').get - end - - before(:each) do - @contact_point_nodes = response.filter('http://id.ukpds.org/schema/ContactPoint') - end - - describe '#postal_addresses' do - context 'Grom::Node has all the required objects' do - it 'returns the postal addresses for a Grom::Node object of type ContactPoint' do - contact_point_node = @contact_point_nodes.first - - expect(contact_point_node.postal_addresses.size).to eq(1) - expect(contact_point_node.postal_addresses.first.type).to eq('http://id.ukpds.org/schema/PostalAddress') - end - end - - context 'Grom::Node has no postal addresses' do - it 'returns an empty array' do - contact_point_node = @contact_point_nodes[1] - - expect(contact_point_node.postal_addresses).to eq([]) - end - end - end - - describe '#email' do - context 'Grom::Node has all the required objects' do - it 'returns the email for a Grom::Node object of type ContactPoint' do - contact_point_node = @contact_point_nodes.first - - expect(contact_point_node).to respond_to(:email) - expect(contact_point_node.email).to eq('person@parliament.uk') - end - end - - context 'Grom::Node has no email' do - it 'returns an empty string' do - contact_point_node = @contact_point_nodes[1] - - expect(contact_point_node).to respond_to(:email) - expect(contact_point_node.email).to eq('') - end - end - end - - describe '#phone_number' do - context 'Grom::Node has all the required objects' do - it 'returns the phone number for a Grom::Node object of type ContactPoint' do - contact_point_node = @contact_point_nodes.first - - expect(contact_point_node).to respond_to(:phone_number) - expect(contact_point_node.phone_number).to eq('123456789') - end - end - - context 'Grom::Node has no phone number' do - it 'returns an empty string' do - contact_point_node = @contact_point_nodes[1] - - expect(contact_point_node).to respond_to(:phone_number) - expect(contact_point_node.phone_number).to eq('') - end - end - end - - describe '#fax_number' do - context 'Grom::Node has all the required objects' do - it 'returns the fax number for a Grom::Node object of type ContactPoint' do - contact_point_node = @contact_point_nodes.first - - expect(contact_point_node).to respond_to(:fax_number) - expect(contact_point_node.fax_number).to eq('123456789') - end - end - - context 'Grom::Node has no fax number' do - it 'returns an empty string' do - contact_point_node = @contact_point_nodes[1] - - expect(contact_point_node).to respond_to(:fax_number) - expect(contact_point_node.fax_number).to eq('') - end - end - end - - describe '#person' do - context 'Grom::Node has all the required objects' do - it 'returns the object of type Person for a Grom::Node object of type ContactPoint' do - contact_point_node = @contact_point_nodes.first - - expect(contact_point_node).to respond_to(:person) - expect(contact_point_node.person.first.type).to eq('http://id.ukpds.org/schema/Person') - expect(contact_point_node.person.first.given_name).to eq('given') - expect(contact_point_node.person.first.family_name).to eq('family') - end - end - - context 'Grom::Node has no person associated with it' do - it 'returns an empty string' do - contact_point_node = @contact_point_nodes[1] - - expect(contact_point_node).to respond_to(:person) - expect(contact_point_node.person.size).to eq(0) - end - end - end - - describe '#incumbency' do - context 'Grom::Node has all the required objects' do - it 'returns the object of type Incumbency for a Grom::Node object of type ContactPoint' do - contact_point_node = @contact_point_nodes.first - - expect(contact_point_node).to respond_to(:incumbency) - expect(contact_point_node.incumbency.type).to eq('http://id.ukpds.org/schema/Incumbency') - end - end - - context 'Grom::Node has no incumbency associated with it' do - it 'returns nil' do - contact_point_node = @contact_point_nodes.first - - expect(contact_point_node).to respond_to(:incumbency) - expect(contact_point_node.incumbency).to be(nil) - end - end - end -end diff --git a/spec/parliament/decorator/gender_identity_spec.rb b/spec/parliament/decorator/gender_identity_spec.rb deleted file mode 100644 index eaac109..0000000 --- a/spec/parliament/decorator/gender_identity_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Decorator::GenderIdentity, vcr: true do - let(:response) do - Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people('626b57f9-6ef0-475a-ae12-40a44aca7eff').get - end - - before(:each) do - @gender_identity_nodes = response.filter('http://id.ukpds.org/schema/GenderIdentity') - end - - describe '#gender' do - context 'Grom::Node has all the required objects' do - it 'returns the gender for a Grom::Node object of type GenderIdentity' do - gender_identity_node = @gender_identity_nodes.first - - expect(gender_identity_node.gender.genderName).to eq('F') - expect(gender_identity_node.gender.type).to eq('http://id.ukpds.org/schema/Gender') - end - end - - context 'Grom::Node has no gender' do - it 'returns nil' do - gender_identity_node = @gender_identity_nodes[1] - - expect(gender_identity_node.gender).to be(nil) - end - end - end -end diff --git a/spec/parliament/decorator/gender_spec.rb b/spec/parliament/decorator/gender_spec.rb deleted file mode 100644 index d5f4854..0000000 --- a/spec/parliament/decorator/gender_spec.rb +++ /dev/null @@ -1,30 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Decorator::Gender, vcr: true do - let(:response) do - Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people('626b57f9-6ef0-475a-ae12-40a44aca7eff').get - end - - before(:each) do - @gender_nodes = response.filter('http://id.ukpds.org/schema/Gender') - end - - describe '#name' do - context 'Grom::Node has all the required objects' do - it 'returns the name for a Grom::Node object of type Gender' do - gender_node = @gender_nodes.first - - expect(gender_node.name).to eq('F') - end - end - - context 'Grom::Node has no name' do - it 'returns an empty string' do - gender_node = @gender_nodes[1] - - expect(gender_node.name).to eq('') - end - end - end -end diff --git a/spec/parliament/decorator/house_incumbency_spec.rb b/spec/parliament/decorator/house_incumbency_spec.rb deleted file mode 100644 index 0abe144..0000000 --- a/spec/parliament/decorator/house_incumbency_spec.rb +++ /dev/null @@ -1,118 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Decorator::HouseIncumbency, vcr: true do - let(:id) { '90558d1f-ea34-4c44-b3ad-ed9c98a557d1' } - let(:response) do - Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - end - - before(:each) do - @incumbency_nodes = response.filter('http://id.ukpds.org/schema/HouseIncumbency') - end - - describe '#start_date' do - context 'house incumbency has a start date' do - it 'returns the start date of the house incumbency' do - incumbency_node = @incumbency_nodes.first - - expect(incumbency_node).to respond_to(:start_date) - expect(incumbency_node.start_date).to eq(DateTime.new(1992, 6, 26)) - end - end - - context 'house incumbency has no start date' do - it 'returns nil' do - incumbency_node = @incumbency_nodes[1] - - expect(incumbency_node).to respond_to(:start_date) - expect(incumbency_node.start_date).to be(nil) - end - end - end - - describe '#end_date' do - context 'house incumbency has an end date' do - it 'returns the end date of the house incumbency' do - incumbency_node = @incumbency_nodes.first - - expect(incumbency_node).to respond_to(:end_date) - expect(incumbency_node.end_date).to eq(DateTime.new(2013, 4, 8)) - end - end - - context 'house incumbency has no end date' do - it 'returns nil' do - incumbency_node = @incumbency_nodes[1] - - expect(incumbency_node).to respond_to(:end_date) - expect(incumbency_node.end_date).to be(nil) - end - end - end - - describe '#house' do - context 'Grom::Node has all the required objects' do - it 'returns the house for a Grom::Node object of type HouseIncumbency' do - incumbency_node = @incumbency_nodes.first - - expect(incumbency_node.house.type).to eq('http://id.ukpds.org/schema/House') - end - end - - context 'Grom::Node has no house' do - it 'returns nil' do - incumbency_node = @incumbency_nodes[1] - - expect(incumbency_node.house).to be(nil) - end - end - end - - describe '#member' do - context 'Grom::Node has all the required objects' do - it 'returns the member for a Grom::Node object of type HouseIncumbency' do - incumbency_node = @incumbency_nodes.first - - expect(incumbency_node.member.type).to eq('http://id.ukpds.org/schema/Person') - end - end - - context 'Grom::Node has no member' do - it 'returns nil' do - incumbency_node = @incumbency_nodes[1] - - expect(incumbency_node.member).to be_nil - end - end - end - - describe '#current?' do - it 'Grom::Node returns the correct value for a current or non current house incumbency' do - incumbency_results = @incumbency_nodes.map(&:current?) - - expect(incumbency_results).to eq([false, true]) - end - end - - describe '#contact_points' do - context 'house incumbency has contact points' do - it 'returns an array of contact points' do - incumbency_node = response.filter('http://id.ukpds.org/schema/HouseIncumbency')[0] - - expect(incumbency_node).to respond_to(:contact_points) - expect(incumbency_node.contact_points.size).to eq 1 - expect(incumbency_node.contact_points.first.type).to eq 'http://id.ukpds.org/schema/ContactPoint' - end - end - - context 'house incumbency has no contact points' do - it 'returns an empty array' do - incumbency_node = response.filter('http://id.ukpds.org/schema/HouseIncumbency').first - - expect(incumbency_node).to respond_to(:contact_points) - expect(incumbency_node.contact_points).to eq [] - end - end - end -end diff --git a/spec/parliament/decorator/house_seat_spec.rb b/spec/parliament/decorator/house_seat_spec.rb deleted file mode 100644 index e42c93a..0000000 --- a/spec/parliament/decorator/house_seat_spec.rb +++ /dev/null @@ -1,71 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Decorator::HouseSeat, vcr: true do - let(:response) do - Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people('626b57f9-6ef0-475a-ae12-40a44aca7eff').get - end - - before(:each) do - @seat_nodes = response.filter('http://id.ukpds.org/schema/HouseSeat') - end - - describe '#house' do - context 'Grom::Node has all the required objects' do - it 'returns the house for a Grom::Node object of type HouseSeat' do - seat_node = @seat_nodes.first - - expect(seat_node.house.type).to eq('http://id.ukpds.org/schema/House') - end - end - - context 'Grom::Node has no house' do - it 'returns nil' do - seat_node = @seat_nodes[1] - - expect(seat_node.house).to be(nil) - end - end - end - - describe '#constituency' do - context 'Grom::Node has all the required objects' do - it 'returns the constituency for a Grom::Node object of type HouseSeat' do - seat_node = @seat_nodes.first - - expect(seat_node.constituency.type).to eq('http://id.ukpds.org/schema/ConstituencyGroup') - end - end - - context 'Grom::Node has no constituency' do - it 'returns nil' do - seat_node = @seat_nodes[1] - - expect(seat_node.constituency).to be(nil) - end - end - end - - describe '#seat_incumbencies' do - before(:each) do - @seat_nodes = response.filter('http://id.ukpds.org/schema/HouseSeat') - end - - context 'Grom::Node has all the required objects' do - it 'returns the seat incumbencies for a Grom::Node object of type HouseSeat' do - seat_node = @seat_nodes.first - - expect(seat_node.seat_incumbencies.size).to eq(1) - expect(seat_node.seat_incumbencies.first.type).to eq('http://id.ukpds.org/schema/SeatIncumbency') - end - end - - context 'Grom::Node has no seat incumbencies' do - it 'returns an empty array' do - seat_node = @seat_nodes[1] - - expect(seat_node.seat_incumbencies).to eq([]) - end - end - end -end diff --git a/spec/parliament/decorator/house_spec.rb b/spec/parliament/decorator/house_spec.rb deleted file mode 100644 index b4846e6..0000000 --- a/spec/parliament/decorator/house_spec.rb +++ /dev/null @@ -1,108 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Decorator::House, vcr: true do - let(:response) do - Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people('626b57f9-6ef0-475a-ae12-40a44aca7eff').get - end - - describe '#name' do - before(:each) do - @house_nodes = response.filter('http://id.ukpds.org/schema/House') - end - - context 'Grom::Node has all the required objects' do - it 'returns the name for a Grom::Node object of type House' do - house_node = @house_nodes.first - - expect(house_node.name).to eq('House of Commons') - end - end - - context 'Grom::Node has no name' do - it 'returns an empty string' do - house_node = @house_nodes.first - - expect(house_node.name).to eq('') - end - end - end - - describe '#seats' do - before(:each) do - id = 'ff75cd0c-1a8b-49ab-8292-f00d153588e5' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).houses.get - @house_nodes = response.filter('http://id.ukpds.org/schema/House') - end - - context 'Grom::Node has all the required objects' do - it 'returns the seats for a Grom::Node object of type House' do - house_node = @house_nodes.first - - expect(house_node.seats.size).to eq(3) - expect(house_node.seats.first.type).to eq('http://id.ukpds.org/schema/HouseSeat') - end - end - - context 'Grom::Node has no seats' do - it 'returns an empty string' do - house_node = @house_nodes.first - - expect(house_node.seats).to eq([]) - end - end - end - - describe '#seat_incumbencies' do - before(:each) do - id = 'ff75cd0c-1a8b-49ab-8292-f00d153588e5' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).houses.get - @house_nodes = response.filter('http://id.ukpds.org/schema/House') - end - - context 'Grom::Node has all the required objects' do - it 'returns the seat_incumbencies for a Grom::Node object of type House' do - house_node = @house_nodes.first - - expect(house_node.seat_incumbencies.size).to eq(6) - expect(house_node.seat_incumbencies.first.type).to eq('http://id.ukpds.org/schema/SeatIncumbency') - end - end - - context 'Grom::Node has no seat incumbencies' do - it 'returns an empty string' do - house_node = @house_nodes.first - - expect(house_node.seat_incumbencies).to eq([]) - end - end - end - - describe '#house_incumbencies' do - before(:each) do - id = '90558d1f-ea34-4c44-b3ad-ed9c98a557d1' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).houses.get - @house_nodes = response.filter('http://id.ukpds.org/schema/House') - end - - context 'Grom::Node has all the required objects' do - it 'returns the house_incumbencies for a Grom::Node object of type House' do - house_node = @house_nodes.first - - expect(house_node.house_incumbencies.size).to eq(1) - expect(house_node.house_incumbencies.first.type).to eq('http://id.ukpds.org/schema/HouseIncumbency') - end - end - - context 'Grom::Node has no house incumbencies' do - it 'returns an empty string' do - house_node = @house_nodes.first - - expect(house_node.house_incumbencies).to eq([]) - end - end - end -end diff --git a/spec/parliament/decorator/incumbency_spec.rb b/spec/parliament/decorator/incumbency_spec.rb deleted file mode 100644 index c2261fb..0000000 --- a/spec/parliament/decorator/incumbency_spec.rb +++ /dev/null @@ -1,136 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Decorator::Incumbency, vcr: true do - let(:id) { '4b77dd58-f6ba-4121-b521-c8ad70465f52' } - let(:response) do - Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).houses(id).members.current.get - end - - before(:each) do - @incumbency_nodes = response.filter('http://id.ukpds.org/schema/Incumbency') - end - - describe '#start_date' do - context 'incumbency has a start date' do - it 'returns the start date of the incumbency' do - incumbency_node = @incumbency_nodes.first - - expect(incumbency_node).to respond_to(:start_date) - expect(incumbency_node.start_date).to eq(DateTime.new(2015, 5, 7)) - end - end - - context 'incumbency has no start date' do - it 'returns nil' do - incumbency_node = @incumbency_nodes[1] - - expect(incumbency_node).to respond_to(:start_date) - expect(incumbency_node.start_date).to be(nil) - end - end - end - - describe '#end_date' do - context 'incumbency has an end date' do - it 'returns the end date of the incumbency' do - incumbency_node = @incumbency_nodes.first - - expect(incumbency_node).to respond_to(:end_date) - expect(incumbency_node.end_date).to eq(DateTime.new(2016, 5, 7)) - end - end - - context 'incumbency has no end date' do - it 'returns nil' do - incumbency_node = @incumbency_nodes[1] - - expect(incumbency_node).to respond_to(:end_date) - expect(incumbency_node.end_date).to be(nil) - end - end - end - - describe '#member' do - context 'Grom::Node has all the required objects' do - it 'returns the member for a Grom::Node object of type Incumbency' do - incumbency_node = @incumbency_nodes.first - - expect(incumbency_node.member.type).to eq('http://id.ukpds.org/schema/Person') - end - end - - context 'Grom::Node has no member' do - it 'returns nil' do - incumbency_node = @incumbency_nodes[1] - - expect(incumbency_node.member).to be_nil - end - end - end - - describe '#current?' do - it 'Grom::Node returns the correct value for a current or non current incumbency' do - incumbency_results = @incumbency_nodes.map(&:current?) - - expect(incumbency_results).to eq([false, true, true]) - end - end - - describe '#contact_points' do - context 'incumbency has contact points' do - it 'returns an array of contact points' do - incumbency_node = response.filter('http://id.ukpds.org/schema/Incumbency')[0] - - expect(incumbency_node).to respond_to(:contact_points) - expect(incumbency_node.contact_points.size).to eq 1 - expect(incumbency_node.contact_points.first.type).to eq 'http://id.ukpds.org/schema/ContactPoint' - end - end - - context 'incumbency has no contact points' do - it 'returns an empty array' do - incumbency_node = response.filter('http://id.ukpds.org/schema/Incumbency').first - - expect(incumbency_node).to respond_to(:contact_points) - expect(incumbency_node.contact_points).to eq [] - end - end - end - - describe '#house' do - context 'Grom::Node has all the required objects' do - it 'returns the house for a Grom::Node object of type Incumbency' do - incumbency_node = @incumbency_nodes.first - - expect(incumbency_node.house.type).to eq('http://id.ukpds.org/schema/House') - end - end - - context 'Grom::Node has no house' do - it 'returns nil' do - incumbency_node = @incumbency_nodes.first - - expect(incumbency_node.house).to be(nil) - end - end - end - - describe '#seat' do - context 'Grom::Node has all the required objects' do - it 'returns the seat for a Grom::Node object of type Incumbency' do - incumbency_node = @incumbency_nodes.first - - expect(incumbency_node.seat.type).to eq('http://id.ukpds.org/schema/HouseSeat') - end - end - - context 'Grom::Node has no seats' do - it 'returns nil' do - incumbency_node = @incumbency_nodes.first - - expect(incumbency_node.seat).to be(nil) - end - end - end -end diff --git a/spec/parliament/decorator/party_membership_spec.rb b/spec/parliament/decorator/party_membership_spec.rb deleted file mode 100644 index 6146b20..0000000 --- a/spec/parliament/decorator/party_membership_spec.rb +++ /dev/null @@ -1,75 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Decorator::PartyMembership, vcr: true do - let(:response) do - Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people('626b57f9-6ef0-475a-ae12-40a44aca7eff').get - end - - before(:each) do - @party_membership_nodes = response.filter('http://id.ukpds.org/schema/PartyMembership') - end - - describe '#party' do - context 'Grom::Node has all the required objects' do - it 'returns the party for a Grom::Node object of type PartyMembership' do - party_membership_node = @party_membership_nodes.first - - expect(party_membership_node.party.name).to eq('Labour') - expect(party_membership_node.party.type).to eq('http://id.ukpds.org/schema/Party') - end - end - - context 'Grom::Node has no parties' do - it 'returns an empty array' do - party_membership_node = @party_membership_nodes[1] - - expect(party_membership_node.party).to be(nil) - end - end - end - - describe '#start_date' do - context 'Grom::Node has all the required objects' do - it 'returns the start date for a Grom::Node object of type PartyMembership' do - party_membership_node = @party_membership_nodes.first - - expect(party_membership_node.start_date).to eq(DateTime.new(1992, 4, 9)) - end - end - - context 'Grom::Node has no start date' do - it 'returns nil' do - party_membership_node = @party_membership_nodes[1] - - expect(party_membership_node.start_date).to be(nil) - end - end - end - - describe '#end_date' do - context 'Grom::Node has all the required objects' do - it 'returns the end date for a Grom::Node object of type PartyMembership' do - party_membership_node = @party_membership_nodes.first - - expect(party_membership_node.end_date).to eq(DateTime.new(2015, 3, 30)) - end - end - - context 'Grom::Node has no end date' do - it 'returns nil' do - party_membership_node = @party_membership_nodes[1] - - expect(party_membership_node.end_date).to be(nil) - end - end - end - - describe '#current?' do - it 'Grom::Node returns the correct value for a current or non current party membership' do - party_membership_results = @party_membership_nodes.map(&:current?) - - expect(party_membership_results).to eq([false, true]) - end - end -end diff --git a/spec/parliament/decorator/party_spec.rb b/spec/parliament/decorator/party_spec.rb deleted file mode 100644 index 273e84e..0000000 --- a/spec/parliament/decorator/party_spec.rb +++ /dev/null @@ -1,88 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Decorator::Party, vcr: true do - let(:id) { '626b57f9-6ef0-475a-ae12-40a44aca7eff' } - let(:response) do - Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - end - - describe '#name' do - before(:each) do - @party_nodes = response.filter('http://id.ukpds.org/schema/Party') - end - - context 'Grom::Node has all the required objects' do - it 'confirms that the type for this Grom::Node object is Party' do - party_node = @party_nodes.first - - expect(party_node.type).to eq('http://id.ukpds.org/schema/Party') - end - - it 'returns the name of the party for the Grom::Node object' do - party_node = @party_nodes.first - - expect(party_node.name).to eq('Labour') - end - end - - context 'Grom::Node does not have have a name' do - it 'confirms that the name for this Grom::Node node does not exist' do - objects_without_name_node = @party_nodes[1] - - expect(objects_without_name_node.name).to eq('') - end - end - end - - describe '#party_memberships' do - before(:each) do - id = '626b57f9-6ef0-475a-ae12-40a44aca7eff' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).parties.get - @party_nodes = response.filter('http://id.ukpds.org/schema/Party') - end - - context 'Grom::Node has all the required objects' do - it 'returns the party memberships for a Grom::Node object of type Party' do - party_node = @party_nodes.first - - expect(party_node.party_memberships.size).to eq(2) - expect(party_node.party_memberships.first.type).to eq('http://id.ukpds.org/schema/PartyMembership') - end - end - - context 'Grom::Node has no name' do - it 'returns an empty array' do - party_node = @party_nodes[1] - - expect(party_node.party_memberships).to eq([]) - end - end - end - - describe '#member_count' do - before(:each) do - id = '4b77dd58-f6ba-4121-b521-c8ad70465f52' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).houses(id).parties.current.get - @party_nodes = response.filter('http://id.ukpds.org/schema/Party') - end - - context 'Grom::Node has a member count' do - it 'returns the member count for a Grom::Node object of type Party' do - party_node = @party_nodes.first - - expect(party_node.member_count).to eq(2) - end - end - - context 'Grom::Node has no count' do - it 'returns nil' do - party_node = @party_nodes[1] - - expect(party_node.member_count).to be(nil) - end - end - end -end diff --git a/spec/parliament/decorator/person_spec.rb b/spec/parliament/decorator/person_spec.rb deleted file mode 100644 index 6e7a25b..0000000 --- a/spec/parliament/decorator/person_spec.rb +++ /dev/null @@ -1,552 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Decorator::Person, vcr: true do - let(:id) { '626b57f9-6ef0-475a-ae12-40a44aca7eff' } - let(:response) do - Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - end - - describe '#houses' do - before(:each) do - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the houses for a Grom::Node object of type Person' do - person_node = @people_nodes.first - - expect(person_node.houses.size).to eq(1) - expect(person_node.houses.first.type).to eq('http://id.ukpds.org/schema/House') - end - end - - context 'Grom::Node has all the required objects (house incumbencies)' do - it 'returns the houses for a Grom::Node object of type Person' do - person_node = @people_nodes.first - - expect(person_node.houses.size).to eq(1) - expect(person_node.houses.first.type).to eq('http://id.ukpds.org/schema/House') - end - end - - context 'Grom::Node has no houses' do - it 'returns an empty array' do - person_node = @people_nodes[1] - - expect(person_node.houses).to eq([]) - end - end - end - - describe '#incumbencies' do - before(:each) do - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the incumbencies for a Grom::Node object of type Person' do - person_node = @people_nodes.first - - expect(person_node.incumbencies.size).to eq(5) - end - end - - context 'Grom::Node has no incumbencies' do - it 'returns an empty array' do - person_node = @people_nodes[1] - - expect(person_node.incumbencies).to eq([]) - end - end - end - - describe '#seat_incumbencies' do - before(:each) do - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the seat incumbencies for a Grom::Node object of type Person' do - person_node = @people_nodes.first - - expect(person_node.seat_incumbencies.size).to eq(5) - expect(person_node.seat_incumbencies.first.type).to eq('http://id.ukpds.org/schema/SeatIncumbency') - end - end - - context 'Grom::Node has no seat incumbencies' do - it 'returns an empty array' do - person_node = @people_nodes[1] - - expect(person_node.seat_incumbencies).to eq([]) - end - end - end - - describe '#seats' do - before(:each) do - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the seats for a Grom::Node object of type Person' do - person_node = @people_nodes.first - expect(person_node.seats.size).to eq(2) - expect(person_node.seats.first.type).to eq('http://id.ukpds.org/schema/HouseSeat') - end - end - - context 'Grom::Node has no seats' do - it 'returns an empty array' do - person_node = @people_nodes[1] - - expect(person_node.seats).to eq([]) - end - end - end - - describe '#given_name' do - before(:each) do - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the given name for a Grom::Node objects of type Person' do - person_node = @people_nodes.first - - expect(person_node.given_name).to eq('Person 1 - givenName') - end - end - - context 'Grom::Node has no personGivenName' do - it 'returns an empty string' do - person_node = @people_nodes[1] - - expect(person_node.given_name).to eq('') - end - end - end - - describe '#family_name' do - before(:each) do - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the given name for a Grom::Node objects of type Person' do - person_node = @people_nodes.first - - expect(person_node.family_name).to eq('Person 1 - familyName') - end - end - - context 'Grom::Node has no personGivenName' do - it 'returns an empty string' do - person_node = @people_nodes[1] - - expect(person_node.family_name).to eq('') - end - end - end - - describe '#date_of_birth' do - before(:each) do - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the date of birth for a Grom::Node objects of type Person' do - person_node = @people_nodes.first - - expect(person_node.date_of_birth).to eq(DateTime.new(1950, 10, 17)) - end - end - - context 'Grom::Node has no personDateOfBirth' do - it 'returns nil' do - person_node = @people_nodes[1] - - expect(person_node.date_of_birth).to be(nil) - end - end - end - - describe '#other_name' do - before(:each) do - id = '08a3dfac-652a-44d6-8a43-00bb13c60e47' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the other name for a Grom::Node objects of type Person' do - person_node = @people_nodes.first - - expect(person_node.other_name).to eq('Person 1 - otherName') - end - end - - context 'Grom::Node has no personGivenName' do - it 'returns an empty string' do - person_node = @people_nodes[1] - - expect(person_node.other_name).to eq('') - end - end - end - - describe '#full_name' do - before(:each) do - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the full name for a Grom::Node objects of type Person' do - person_node = @people_nodes.first - - expect(person_node.full_name).to eq('Person 1 - givenName Person 1 - familyName') - end - end - - context 'Grom::Node has no personGivenName' do - it 'returns a full name with just personFamilyName' do - person_node = @people_nodes[1] - - expect(person_node.full_name).to eq('Person 2 - familyName') - end - end - - context 'Grom::Node has no personFamilyName' do - it 'returns a full name with just personGivenName' do - person_node = @people_nodes[1] - - expect(person_node.full_name).to eq('Person 2 - givenName') - end - end - - context 'Grom::Node has no personGivenName or personFamilyName' do - it 'returns an empty string' do - person_node = @people_nodes[1] - - expect(person_node.full_name).to eq('') - end - end - end - - describe '#constituencies' do - before(:each) do - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the parties for a Grom::Node objects of type Person' do - person_node = @people_nodes.first - - expect(person_node.constituencies.size).to eq(3) - expect(person_node.constituencies.first.type).to eq('http://id.ukpds.org/schema/ConstituencyGroup') - end - end - - context 'Grom::Node has no constituencies' do - it 'returns an empty array' do - person_node = @people_nodes[1] - - expect(person_node.constituencies).to eq([]) - end - end - end - - describe '#parties' do - before(:each) do - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the parties for a Grom::Node objects of type Person' do - person_node = @people_nodes.first - - expect(person_node.parties.size).to eq(1) - expect(person_node.parties.first.type).to eq('http://id.ukpds.org/schema/Party') - end - end - - context 'Grom::Node has no parties' do - it 'returns an empty array' do - person_node = @people_nodes[1] - - expect(person_node.parties).to eq([]) - end - end - end - - describe '#party_memberships' do - before(:each) do - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the party memberships for a Grom::Node object of type Person' do - person_node = @people_nodes.first - - expect(person_node.party_memberships.size).to eq(2) - expect(person_node.party_memberships.first.type).to eq('http://id.ukpds.org/schema/PartyMembership') - end - end - - context 'Grom::Node has no party memberships' do - it 'returns an empty array' do - person_node = @people_nodes[1] - - expect(person_node.party_memberships).to eq([]) - end - end - end - - describe '#contact_points' do - before(:each) do - id = '08a3dfac-652a-44d6-8a43-00bb13c60e47' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - @people_with_contact_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the contact points for a Grom::Node object of type Person' do - person_node = @people_with_contact_nodes.first - - expect(person_node.contact_points.size).to eq(1) - expect(person_node.contact_points.first.type).to eq('http://id.ukpds.org/schema/ContactPoint') - end - end - - context 'Grom::Node has no contact points' do - it 'returns an empty array' do - person_node = @people_with_contact_nodes[1] - - expect(person_node.contact_points).to eq([]) - end - end - end - - describe '#gender_identities' do - before(:each) do - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the contact points for a Grom::Node object of type Person' do - person_node = @people_nodes.first - - expect(person_node.gender_identities.size).to eq(1) - expect(person_node.gender_identities.first.type).to eq('http://id.ukpds.org/schema/GenderIdentity') - end - end - - context 'Grom::Node has no gender identities' do - it 'returns an empty array' do - person_node = @people_nodes[1] - - expect(person_node.gender_identities).to eq([]) - end - end - end - - describe '#gender' do - before(:each) do - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the gender for a Grom::Node object of type Person' do - person_node = @people_nodes.first - - expect(person_node.gender.genderName).to eq('F') - expect(person_node.gender.type).to eq('http://id.ukpds.org/schema/Gender') - end - end - - context 'Grom::Node has no gender' do - it 'returns nil' do - person_node = @people_nodes[1] - - expect(person_node.gender).to be(nil) - end - end - end - - describe '#statuses' do - context 'Grom::Node has a current seat incumbency' do - it 'returns the status Current MP' do - id = '1921fc4a-6867-48fa-a4f4-6df05be005ce' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - person_node = response.filter('http://id.ukpds.org/schema/Person').first - - expect(person_node.statuses[:house_membership_status].size).to eq(1) - expect(person_node.statuses[:house_membership_status].first).to eq('Current MP') - end - end - - context 'Grom::Node has a current house incumbency' do - it 'returns the status Current Lord' do - id = '841a4a1f-965a-4009-8cbc-dfc9e350fe0e' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - person_node = response.filter('http://id.ukpds.org/schema/Person').first - - expect(person_node.statuses[:house_membership_status].size).to eq(1) - expect(person_node.statuses[:house_membership_status].first).to eq('Member of the House of Lords') - end - end - - context 'Grom::Node has a current incumbency' do - it 'returns the status Current Member' do - id = '841a4a1f-965a-4009-8cbc-dfc9e350fe0e' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - person_node = response.filter('http://id.ukpds.org/schema/Person').first - - expect(person_node.statuses[:general_membership_status].size).to eq(1) - expect(person_node.statuses[:general_membership_status].first).to eq('Current Member') - end - end - - context 'Grom::Node has no current incumbency' do - it 'returns the status Former Member' do - id = '5fe4df31-fa20-40cc-8cf2-f9d731e0be91' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - person_node = response.filter('http://id.ukpds.org/schema/Person').first - - expect(person_node.statuses[:general_membership_status].size).to eq(1) - expect(person_node.statuses[:general_membership_status].first).to eq('Former Member') - end - end - - context 'Grom::Node has seat incumbencies but no current seat incumbency' do - it 'returns the status Former MP' do - id = '5fe4df31-fa20-40cc-8cf2-f9d731e0be91' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - person_node = response.filter('http://id.ukpds.org/schema/Person').first - - expect(person_node.statuses[:house_membership_status].size).to eq(1) - expect(person_node.statuses[:house_membership_status].first).to eq('Former MP') - end - end - - context 'Grom::Node has house incumbencies but no current house incumbency' do - it 'returns the status Former Lord' do - id = '99ceb32e-2e16-42a0-904d-c6a7e3a9f217' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - person_node = response.filter('http://id.ukpds.org/schema/Person').first - - expect(person_node.statuses[:house_membership_status].size).to eq(1) - expect(person_node.statuses[:house_membership_status].first).to eq('Former Member of the House of Lords') - end - end - - context 'Grom::Node has seat incumbencies and a current house incumbency' do - it 'returns the statuses Former MP and Current Lord' do - id = '7c511a2b-9ce2-4001-8ee5-71ae734c52d6' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - person_node = response.filter('http://id.ukpds.org/schema/Person').first - - expect(person_node.statuses.size).to eq(2) - expect(person_node.statuses[:house_membership_status][0]).to eq('Member of the House of Lords') - expect(person_node.statuses[:house_membership_status][1]).to eq('Former MP') - end - end - - context 'Grom::Node has house incumbencies and seat incumbencies but no current incumbency' do - it 'returns the statuses Former Lord and Former MP' do - id = '90558d1f-ea34-4c44-b3ad-ed9c98a557d1' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - person_node = response.filter('http://id.ukpds.org/schema/Person').first - - expect(person_node.statuses.size).to eq(2) - expect(person_node.statuses[:house_membership_status][0]).to eq('Former Member of the House of Lords') - expect(person_node.statuses[:house_membership_status][1]).to eq('Former MP') - end - end - - context 'Grom::Node has no membership data' do - it 'returns an empty array' do - id = '841a4a1f-965a-4009-8cbc-dfc9e350fe0e' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - person_node = response.filter('http://id.ukpds.org/schema/Person').first - - expect(person_node.statuses[:house_membership_status]).to eq([]) - end - end - end - - describe '#full_title' do - before(:each) do - id = '841a4a1f-965a-4009-8cbc-dfc9e350fe0e' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - @person_node = response.filter('http://id.ukpds.org/schema/Person').first - end - - context 'Grom::Node has all the required objects' do - it 'returns the given full_title for a Grom::Node objects of type Person' do - expect(@person_node.full_title).to eq('Person - fullTitle') - end - end - - context 'Grom::Node has no fullTitle' do - it 'returns an empty string' do - expect(@person_node.full_title).to eq('') - end - end - end - - describe '#display_name' do - before(:each) do - id = '841a4a1f-965a-4009-8cbc-dfc9e350fe0e' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - @person_node = response.filter('http://id.ukpds.org/schema/Person').first - end - - context 'Grom::Node has all the required objects' do - it 'returns the given display_name for a Grom::Node objects of type Person' do - expect(@person_node.display_name).to eq('Person - displayAs') - end - end - - context 'Grom::Node has no displayAs' do - it 'returns the full_name' do - expect(@person_node.display_name).to eq('Person - givenName Person - familyName') - end - end - end - - describe '#sort_name' do - before(:each) do - id = '841a4a1f-965a-4009-8cbc-dfc9e350fe0e' - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people.get - @people_nodes = response.filter('http://id.ukpds.org/schema/Person') - end - - context 'Grom::Node has all the required objects' do - it 'returns the given sort_name for a Grom::Node objects of type Person' do - expect(@people_nodes.first.sort_name).to eq('Person 1 - listAs') - end - end - - context 'Grom::Node has no listAs' do - it 'returns an empty string' do - expect(@people_nodes.first.sort_name).to eq('') - end - end - end -end diff --git a/spec/parliament/decorator/postal_address_spec.rb b/spec/parliament/decorator/postal_address_spec.rb deleted file mode 100644 index 5bbf298..0000000 --- a/spec/parliament/decorator/postal_address_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Decorator::PostalAddress, vcr: true do - let(:id) { '8d895ffc-c2bf-43d2-b756-95ab3e987919' } - let(:response) { Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).constituencies(id).contact_point.get } - - before(:each) do - @postal_address_nodes = response.filter('http://id.ukpds.org/schema/PostalAddress') - end - - describe '#full_address' do - context 'Grom::Node has all the required objects' do - it 'returns the full address for a Grom::Node object of type PostalAddress' do - postal_address_node = @postal_address_nodes.first - - expect(postal_address_node).to respond_to(:full_address) - expected_full_address = 'House of Commons, London, SW1A 0AA' - expect(postal_address_node.full_address).to eq(expected_full_address) - end - end - - context 'Grom::Node has no postal addresses' do - it 'returns an empty array' do - postal_address_node = @postal_address_nodes[1] - - expect(postal_address_node.full_address).to eq('') - end - end - end -end diff --git a/spec/parliament/decorator/seat_incumbency_spec.rb b/spec/parliament/decorator/seat_incumbency_spec.rb deleted file mode 100644 index 240e967..0000000 --- a/spec/parliament/decorator/seat_incumbency_spec.rb +++ /dev/null @@ -1,162 +0,0 @@ -require_relative '../../spec_helper' - -describe Parliament::Decorator::SeatIncumbency, vcr: true do - let(:id) { '626b57f9-6ef0-475a-ae12-40a44aca7eff' } - let(:response) do - Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people(id).get - end - - before(:each) do - @seat_incumbency_nodes = response.filter('http://id.ukpds.org/schema/SeatIncumbency') - end - - describe '#start_date' do - context 'seat incumbency has a start date' do - it 'returns the start date of the seat incumbency' do - seat_incumbency_node = @seat_incumbency_nodes.first - - expect(seat_incumbency_node).to respond_to(:start_date) - expect(seat_incumbency_node.start_date).to eq(DateTime.new(1992, 4, 9)) - end - end - - context 'seat incumbency has no start date' do - it 'returns nil' do - seat_incumbency_node = @seat_incumbency_nodes[1] - - expect(seat_incumbency_node).to respond_to(:start_date) - expect(seat_incumbency_node.start_date).to be(nil) - end - end - end - - describe '#end_date' do - context 'seat incumbency has an end date' do - it 'returns the end date of the seat incumbency' do - seat_incumbency_node = @seat_incumbency_nodes.first - - expect(seat_incumbency_node).to respond_to(:end_date) - expect(seat_incumbency_node.end_date).to eq(DateTime.new(1997, 5, 1)) - end - end - - context 'seat incumbency has no end date' do - it 'returns nil' do - seat_incumbency_node = @seat_incumbency_nodes[1] - - expect(seat_incumbency_node).to respond_to(:end_date) - expect(seat_incumbency_node.end_date).to be(nil) - end - end - end - - describe '#seat' do - context 'Grom::Node has all the required objects' do - it 'returns the seat for a Grom::Node object of type SeatIncumbency' do - seat_incumbency_node = @seat_incumbency_nodes.first - - expect(seat_incumbency_node.seat.type).to eq('http://id.ukpds.org/schema/HouseSeat') - end - end - - context 'Grom::Node has no seats' do - it 'returns an empty array' do - seat_incumbency_node = @seat_incumbency_nodes[1] - - expect(seat_incumbency_node.seat).to be(nil) - end - end - end - - describe '#house' do - context 'Grom::Node has all the required objects' do - it 'returns the house for a Grom::Node object of type SeatIncumbency' do - seat_incumbency_node = @seat_incumbency_nodes.first - - expect(seat_incumbency_node.house.type).to eq('http://id.ukpds.org/schema/House') - end - end - - context 'Grom::Node has no house' do - it 'returns nil' do - seat_incumbency_node = @seat_incumbency_nodes[1] - - expect(seat_incumbency_node.house).to be(nil) - end - end - end - - describe '#constituency' do - context 'Grom::Node has all the required objects' do - it 'returns the constituency for a Grom::Node object of type SeatIncumbency' do - seat_incumbency_node = @seat_incumbency_nodes.first - - expect(seat_incumbency_node.constituency.type).to eq('http://id.ukpds.org/schema/ConstituencyGroup') - end - end - - context 'Grom::Node has no constituency' do - it 'returns nil' do - seat_incumbency_node = @seat_incumbency_nodes[1] - - expect(seat_incumbency_node.constituency).to be(nil) - end - end - end - - describe '#current?' do - it 'Grom::Node returns the correct value for a current or former seat incumbency' do - seat_incumbency_results = @seat_incumbency_nodes.map(&:current?) - - expect(seat_incumbency_results).to eq([true, false, false, false, false]) - end - end - - describe '#former?' do - it 'Grom::Node returns the correct value for a former or current seat incumbency' do - seat_incumbency_results = @seat_incumbency_nodes.map(&:former?) - - expect(seat_incumbency_results).to eq([false, true, true, true, true]) - end - end - - describe '#contact_points' do - context 'seat incumbency has contact points' do - it 'returns an array of contact points' do - seat_incumbency_node = response.filter('http://id.ukpds.org/schema/SeatIncumbency')[0] - - expect(seat_incumbency_node).to respond_to(:contact_points) - expect(seat_incumbency_node.contact_points.size).to eq 1 - expect(seat_incumbency_node.contact_points.first.type).to eq 'http://id.ukpds.org/schema/ContactPoint' - end - end - - context 'seat incumbency has no contact points' do - it 'returns an empty array' do - seat_incumbency_node = response.filter('http://id.ukpds.org/schema/SeatIncumbency').first - - expect(seat_incumbency_node).to respond_to(:contact_points) - expect(seat_incumbency_node.contact_points).to eq [] - end - end - end - - describe '#member' do - context 'Grom::Node has all the required objects' do - it 'returns the member for a Grom::Node object of type SeatIncumbency' do - seat_incumbency_node = @seat_incumbency_nodes.first - - expect(seat_incumbency_node.member.type).to eq('http://id.ukpds.org/schema/Person') - end - end - - context 'Grom::Node has no member' do - it 'returns nil' do - seat_incumbency_node = @seat_incumbency_nodes[1] - - expect(seat_incumbency_node.member).to be_nil - end - end - end -end diff --git a/spec/parliament/no_content_response_error_spec.rb b/spec/parliament/no_content_response_error_spec.rb index fba9d78..521b559 100644 --- a/spec/parliament/no_content_response_error_spec.rb +++ b/spec/parliament/no_content_response_error_spec.rb @@ -1,11 +1,11 @@ require_relative '../spec_helper' describe Parliament::NoContentResponseError, vcr: true do - let(:response) { double(:response, code: '204', message: 'No Content') } + let(:response) { double(:response, code: '200', message: 'OK') } subject { Parliament::NoContentResponseError.new('http://localhost:3030/foo/bar', response) } it 'has the expected message' do - expect(subject.message).to eq '204 HTTP status code received from: http://localhost:3030/foo/bar - No Content' + expect(subject.message).to eq '200 HTTP status code received from: http://localhost:3030/foo/bar - OK' end end \ No newline at end of file diff --git a/spec/parliament/request/base_request_spec.rb b/spec/parliament/request/base_request_spec.rb index ca0cebf..c0924fe 100644 --- a/spec/parliament/request/base_request_spec.rb +++ b/spec/parliament/request/base_request_spec.rb @@ -26,19 +26,17 @@ end describe '#get' do - context 'it returns a status code of 200 and ..' do - subject { Parliament::Request::BaseRequest.new(base_url: 'http://localhost:3030/parties/current').get } + context 'it returns a status code of 200' do + let(:base_response) { Parliament::Request::BaseRequest.new(base_url: 'http://localhost:3030/parties/current').get } - it 'returns a Net::HTTPResponse' do - expect(subject).to be_a(Net::HTTPResponse) + it 'returns a Parliament::Response::BaseResponse' do + expect(base_response).to be_a(Parliament::Response::BaseResponse) end - end - context 'it returns a status code of 204 and...' do it 'raises a Parliament::NoContentError' do expect { - Parliament::Request::BaseRequest.new(base_url: 'http://localhost:3030/people/321f496b-5c8b-4455-ab49-a96e42b34739/parties/current').get - }.to raise_error(Parliament::NoContentResponseError, '204 HTTP status code received from: http://localhost:3030/people/321f496b-5c8b-4455-ab49-a96e42b34739/parties/current - No Content') + Parliament::Request::BaseRequest.new(base_url: 'http://localhost:3030/parties/x').get + }.to raise_error(Parliament::NoContentResponseError, '204 HTTP status code received from: http://localhost:3030/parties/x - No Content') end end @@ -61,10 +59,11 @@ end context 'it accepts query parameters' do - subject { Parliament::Request::BaseRequest.new(base_url: 'http://localhost:3030/people').get(params: { source: 'mnisId', id: '3898' }) } + it 'sets the query parameters correctly when passed in' do + Parliament::Request::BaseRequest.new(base_url: 'http://localhost:3030/people/lookup').get(params: { source: 'mnisId', id: '3898' }) - it 'returns a Net::HTTPResponse' do - expect(subject).to be_a(Net::HTTPResponse) + expect(WebMock).to have_requested(:get, 'http://localhost:3030/people/lookup?id=3898&source=mnisId'). + with(:headers => {'Accept'=>['*/*', 'application/n-triples'], 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'}).once end end diff --git a/spec/parliament/request/url_request_spec.rb b/spec/parliament/request/url_request_spec.rb index 1116c5e..1c0ed5e 100644 --- a/spec/parliament/request/url_request_spec.rb +++ b/spec/parliament/request/url_request_spec.rb @@ -2,7 +2,7 @@ describe Parliament::Request::UrlRequest, vcr: true do describe '#method_missing' do - subject { Parliament::Request::UrlRequest.new(base_url: 'http://test.com') } + subject { Parliament::Request::UrlRequest.new(base_url: 'http://test.com', decorators: Parliament::Grom::Decorator) } it 'stores method names in @endpoint_parts' do request = subject.people @@ -24,11 +24,23 @@ end describe '#respond_to_missing?' do - subject { Parliament::Request::UrlRequest.new(base_url: 'http://test.com') } + subject { Parliament::Request::UrlRequest.new(base_url: 'http://test.com', decorators: Parliament::Grom::Decorator) } it 'returns true for anything' do expect(subject.send(:respond_to_missing?, :foo)).to eq(true) expect(subject.send(:respond_to_missing?, :bar)).to eq(true) end end + + describe '#query_url' do + it 'makes a request to the correctly built endpoint' do + request = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', decorators: Parliament::Grom::Decorator) + + request.people.members.current.get + + expect(WebMock).to have_requested(:get, 'http://localhost:3030/people/members/current'). + with(:headers => {'Accept'=>['*/*', 'application/n-triples'], 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'}).once + + end + end end \ No newline at end of file diff --git a/spec/parliament/response/base_response_spec.rb b/spec/parliament/response/base_response_spec.rb new file mode 100644 index 0000000..f6e9964 --- /dev/null +++ b/spec/parliament/response/base_response_spec.rb @@ -0,0 +1,20 @@ +require_relative '../../spec_helper' + +describe Parliament::Response::BaseResponse do + let(:response) { 'hello world' } + let(:nil_response) { nil } + + describe 'setting the response variable' do + it 'sets the response variable when a value is passed in' do + base_response = Parliament::Response::BaseResponse.new('hello world') + + expect(base_response.response).to eq('hello world') + end + + it 'sets the response variable to nil when a nil value is passed in' do + base_response = Parliament::Response::BaseResponse.new(nil) + + expect(base_response.response).to be(nil) + end + end +end diff --git a/spec/parliament/response_spec.rb b/spec/parliament/response_spec.rb deleted file mode 100644 index f8c9452..0000000 --- a/spec/parliament/response_spec.rb +++ /dev/null @@ -1,164 +0,0 @@ -require_relative '../spec_helper' - -describe Parliament::Response, vcr: true do - let(:nodes) { [] } - subject { Parliament::Response.new(nodes) } - - describe '#initialize' do - it 'sets an instance variable for the nodes' do - expect(subject.instance_variable_get(:@nodes)).to eq(nodes) - end - - it 'should respond to size' do - expect(subject).to respond_to(:size) - end - - it 'should respond to each' do - expect(subject).to respond_to(:each) - end - - it 'should respond to select' do - expect(subject).to respond_to(:select) - end - - it 'should respond to map' do - expect(subject).to respond_to(:map) - end - - it 'should respond to select!' do - expect(subject).to respond_to(:select!) - end - - it 'should respond to map!' do - expect(subject).to respond_to(:map!) - end - - it 'should respond to count' do - expect(subject).to respond_to(:count) - end - - it 'should respond to length' do - expect(subject).to respond_to(:length) - end - - it 'should respond to []' do - expect(subject).to respond_to(:[]) - end - - it 'should respond to empty?' do - expect(subject).to respond_to(:empty?) - end - end - - describe '#filter' do - before(:each) do - @response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people.members.current.get - end - - it 'returns an empty array when no types are passed in' do - filtered_response = @response.filter - - expect(filtered_response.size).to eq(0) - end - - it 'returns an array of arrays of objects filtered by type Person' do - filtered_response = @response.filter('http://id.ukpds.org/schema/Person', 'http://id.ukpds.org/schema/Party') - - expect(filtered_response.first.size).to eq(3) - - expect(filtered_response.size).to eq(2) - - filtered_response.first.each do |node| - expect(node.type).to eq('http://id.ukpds.org/schema/Person') - end - end - - it 'returns an array of arrays of objects filtered by type Party' do - filtered_response = @response.filter('http://id.ukpds.org/schema/Person', 'http://id.ukpds.org/schema/Party') - expect(filtered_response[1].size).to eq(1) - - filtered_response[1].each do |node| - expect(node.type).to eq('http://id.ukpds.org/schema/Party') - end - end - - it 'returns an empty array of response objects when the type passed in does not exist' do - filtered_response = @response.filter('http://id.ukpds.org/schema/Person', 'banana') - - expect(filtered_response.first.size).to eq(3) - expect(filtered_response[1].size).to eq(0) - end - - it 'returns an empty array when the response is empty' do - expect(subject.filter('http://id.ukpds.org/schema/Person').size).to eq(0) - end - - it 'returns a response filtered by a single type' do - filtered_response = @response.filter('http://id.ukpds.org/schema/Person') - expect(filtered_response).to be_a(Parliament::Response) - end - - it 'confirms that each Grom::Node is of type Person' do - filtered_response = @response.filter('http://id.ukpds.org/schema/Person') - filtered_response.each do |node| - expect(node.type).to eq('http://id.ukpds.org/schema/Person') - end - end - - it 'filters blank nodes' do - filtered_response = @response.filter(Grom::Node::BLANK) - expect(filtered_response).to be_a(Parliament::Response) - expect(filtered_response.size).to eq(25) - end - - it 'filters a mixture of typed nodes and blank nodes' do - filtered_response = @response.filter('http://id.ukpds.org/schema/Person', Grom::Node::BLANK) - expect(filtered_response[0].size).to eq(3) - expect(filtered_response[1].size).to eq(25) - - filtered_response[0].each do |node| - expect(node.type).to eq('http://id.ukpds.org/schema/Person') - end - end - - it 'filters typed nodes from a mixture of typed nodes and blank nodes' do - filtered_response = @response.filter('http://id.ukpds.org/schema/Person') - expect(filtered_response.size).to eq(3) - - filtered_response.each do |node| - expect(node.type).to eq('http://id.ukpds.org/schema/Person') - end - end - end - - describe '#sort_by' do - before(:each) do - @response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people.members.current.get - end - - it 'sorts the nodes in a Parliament::Response object by the given parameter' do - filtered_response = @response.filter('http://id.ukpds.org/schema/Person') - sorted_response = filtered_response.sort_by(:family_name) - - expect(sorted_response[0].family_name).to eq('Person 1 - familyName') - expect(sorted_response[1].family_name).to eq('Person 2 - familyName') - end - end - - describe '#reverse_sort_by' do - before(:each) do - @response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people('1921fc4a-6867-48fa-a4f4-6df05be005ce').get - end - - it 'sorts the nodes in a Parliament::Response object by the given parameter' do - filtered_response = @response.filter('http://id.ukpds.org/schema/SeatIncumbency') - sorted_response = filtered_response.reverse_sort_by(:start_date) - - expect(sorted_response[0].start_date).to eq(DateTime.new(2015, 5, 7)) - expect(sorted_response[1].start_date).to eq(DateTime.new(2010, 5, 6)) - end - end -end diff --git a/spec/parliament/utils_spec.rb b/spec/parliament/utils_spec.rb deleted file mode 100644 index 8dc1c20..0000000 --- a/spec/parliament/utils_spec.rb +++ /dev/null @@ -1,182 +0,0 @@ -require_relative '../spec_helper' - -describe Parliament::Utils, vcr: true do - describe '#sort_by' do - context 'all nodes have the parameter being sorted on' do - it 'returns a response sorted by personFamilyName' do - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people.get - - sorted_people = Parliament::Utils.sort_by({ - list: response.nodes, - parameters: [:personFamilyName] - }) - - expect(sorted_people.first.personGivenName).to eq('Jane') - end - - it 'returns a response sorted by seatIncumbencyStartDate' do - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people('2c196540-13f3-4c07-8714-b356912beceb').get - filtered_response = response.filter('http://id.ukpds.org/schema/SeatIncumbency') - - sorted_incumbencies = Parliament::Utils.sort_by({ - list: filtered_response.nodes, - parameters: [:start_date] - }) - - expect(sorted_incumbencies.first.start_date).to eq(DateTime.new(1987, 6, 11)) - expect(sorted_incumbencies[1].start_date).to eq(DateTime.new(1992, 4, 9)) - end - end - - context 'not all nodes have the parameter being sorted on' do - it 'returns a response sorted by personGivenName' do - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people.get - filtered_response = response.filter('http://id.ukpds.org/schema/Person') - - sorted_people = Parliament::Utils.sort_by({ - list: response.nodes, - parameters: [:given_name] - }) - - expect(sorted_people.first.given_name).to eq('') - expect(sorted_people[1].given_name).to eq('Alice') - end - - it 'returns a response sorted by end_date (it can handle nil values)' do - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people('1921fc4a-6867-48fa-a4f4-6df05be005ce').get - person = response.filter('http://id.ukpds.org/schema/Person').first - - sorted_incumbencies = Parliament::Utils.sort_by({ - list: person.incumbencies, - parameters: [:end_date], - prepend_rejected: false - }) - - expect(sorted_incumbencies.last.end_date).to eq(nil) - expect(sorted_incumbencies[sorted_incumbencies.length - 2].end_date).to eq(DateTime.new(2015, 3, 30)) - end - - it 'uses the prepend_rejected parameter correctly - defaults to true so nil values will be at the start' do - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people('1921fc4a-6867-48fa-a4f4-6df05be005ce').get - person = response.filter('http://id.ukpds.org/schema/Person').first - - sorted_incumbencies = Parliament::Utils.sort_by({ - list: person.incumbencies, - parameters: [:end_date] - }) - - expect(sorted_incumbencies.first.end_date).to be(nil) - end - - it 'uses the prepend_rejected parameter correctly - when set to false the nil values will be at the end' do - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people('1921fc4a-6867-48fa-a4f4-6df05be005ce').get - person = response.filter('http://id.ukpds.org/schema/Person').first - - sorted_incumbencies = Parliament::Utils.sort_by({ - list: person.incumbencies, - parameters: [:end_date], - prepend_rejected: false - }) - - expect(sorted_incumbencies.last.end_date).to be(nil) - end - end - - context 'sorting by multiple parameters' do - it 'returns a response sorted by personFamilyName, then personGivenName' do - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people.get - - sorted_people = Parliament::Utils.sort_by({ - list: response.nodes, - parameters: [:personFamilyName, :personGivenName] - }) - - expect(sorted_people.first.personGivenName).to eq('Rebecca') - expect(sorted_people[1].personGivenName).to eq('Sarah') - end - end - - context 'sorting strings of different cases' do - it 'returns a response sorted by personFamilyName' do - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people.get - - sorted_people = Parliament::Utils.sort_by({ - list: response.nodes, - parameters: [:personFamilyName] - }) - - expect(sorted_people.first.personGivenName).to eq('Jane') - expect(sorted_people[1].personGivenName).to eq('Alice') - end - end - - context 'sorting strings with accents' do - it 'returns a response sorted by personGivenName' do - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people.get - - sorted_people = Parliament::Utils.sort_by({ - list: response.nodes, - parameters: [:personGivenName] - }) - - expect(sorted_people.first.personGivenName).to eq('Sarah') - expect(sorted_people[1].personGivenName).to eq('Sóley') - expect(sorted_people[2].personGivenName).to eq('Solomon') - end - - it 'returns a response sorted by personFamilyName, personGivenName' do - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people.get - - sorted_people = Parliament::Utils.sort_by({ - list: response.nodes, - parameters: [:personFamilyName, :personGivenName] - }) - - expect(sorted_people.first.personGivenName).to eq('Solomon') - expect(sorted_people[1].personGivenName).to eq('Sophie') - expect(sorted_people[2].personGivenName).to eq('Sarah') - end - end - end - - describe '#reverse_sort_by' do - it 'returns a response sorted by incumbencyStartDate' do - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people('2c196540-13f3-4c07-8714-b356912beceb').get - person = response.filter('http://id.ukpds.org/schema/Person').first - - sorted_incumbencies = Parliament::Utils.reverse_sort_by({ - list: person.incumbencies, - parameters: [:start_date] - }) - - expect(sorted_incumbencies[0].start_date).to eq(DateTime.new(2015, 5, 7)) - expect(sorted_incumbencies[1].start_date).to eq(DateTime.new(2010, 5, 6)) - end - - it 'returns a response sorted by end_date (it can handle nil values)' do - response = Parliament::Request::UrlRequest.new(base_url: 'http://localhost:3030', - builder: Parliament::Builder::NTripleResponseBuilder).people('1921fc4a-6867-48fa-a4f4-6df05be005ce').get - person = response.filter('http://id.ukpds.org/schema/Person').first - - sorted_incumbencies = Parliament::Utils.reverse_sort_by({ - list: person.incumbencies, - parameters: [:end_date], - prepend_rejected: false - }) - - expect(sorted_incumbencies.first.end_date).to be(nil) - expect(sorted_incumbencies[1].end_date).to eq(DateTime.new(2015, 3, 30)) - end - end -end \ No newline at end of file diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index d2dfbfb..4ddabaf 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -8,6 +8,8 @@ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'parliament' +require 'parliament/grom/decorator' + require 'webmock/rspec' require 'vcr'