Skip to content

Commit

Permalink
Fix specs old ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bricesanchez committed Sep 12, 2018
1 parent 3bd0597 commit 1c37afa
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
14 changes: 7 additions & 7 deletions api/spec/graph/refinery/api/fields/pages/page_field_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ module Pages
end

let(:query_string) do
<<-QUERY
query($id: ID!) {
page(id: $id) {
title
}
}
QUERY
<<-GRAPHQL
query($id: ID!) {
page(id: $id) {
title
}
}
GRAPHQL
end

subject { result }
Expand Down
14 changes: 7 additions & 7 deletions api/spec/graph/refinery/api/fields/pages/pages_field_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ module Pages
end

let(:query_string) do
<<-QUERY
query {
pages {
title
}
}
QUERY
<<-GRAPHQL
query {
pages {
title
}
}
GRAPHQL
end

subject { result }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ module Pages
end

let(:query_string) do
<<~QUERY
<<-GRAPHQL
mutation createPage($input: CreatePageInput!) {
createPage(input: $input) {
page {
title
}
}
}
QUERY
GRAPHQL
end

subject { result }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ module Pages
end

let(:query_string) do
<<~QUERY
<<-GRAPHQL
mutation deletePage($input: DeletePageInput!) {
deletePage(input: $input) {
page {
id
}
}
}
QUERY
GRAPHQL
end

subject { result }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module Pages
end

let(:query_string) do
<<~QUERY
<<-GRAPHQL
mutation updatePage($input: UpdatePageInput!) {
updatePage(input: $input) {
page {
Expand All @@ -31,7 +31,7 @@ module Pages
}
}
}
QUERY
GRAPHQL
end

subject { result }
Expand Down

0 comments on commit 1c37afa

Please sign in to comment.