spec/graphql/relay/relation_connection_spec.rb in graphql-1.5.5 vs spec/graphql/relay/relation_connection_spec.rb in graphql-1.5.6

- old
+ new

@@ -2,11 +2,11 @@ require 'spec_helper' describe GraphQL::Relay::RelationConnection do def get_names(result) ships = result["data"]["empire"]["bases"]["edges"] - names = ships.map { |e| e["node"]["name"] } + ships.map { |e| e["node"]["name"] } end def get_page_info(result) result["data"]["empire"]["bases"]["pageInfo"] end @@ -251,11 +251,11 @@ } |} def get_names(result, field_name) bases = result["data"]["empire"][field_name]["edges"] - base_names = bases.map { |b| b["node"]["name"] } + bases.map { |b| b["node"]["name"] } end it "applies the default value" do result = star_wars_query(query_string) bases_by_id = ["Death Star", "Shield Generator", "Headquarters"] @@ -267,10 +267,10 @@ end describe "with a Sequel::Dataset" do def get_names(result) ships = result["data"]["empire"]["basesAsSequelDataset"]["edges"] - names = ships.map { |e| e["node"]["name"] } + ships.map { |e| e["node"]["name"] } end def get_page_info(result) result["data"]["empire"]["basesAsSequelDataset"]["pageInfo"] end