Skip to content

Commit 1c37afa

Browse files
committed
Fix specs old ruby versions
1 parent 3bd0597 commit 1c37afa

5 files changed

Lines changed: 20 additions & 20 deletions

File tree

api/spec/graph/refinery/api/fields/pages/page_field_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ module Pages
2222
end
2323

2424
let(:query_string) do
25-
<<-QUERY
26-
query($id: ID!) {
27-
page(id: $id) {
28-
title
29-
}
30-
}
31-
QUERY
25+
<<-GRAPHQL
26+
query($id: ID!) {
27+
page(id: $id) {
28+
title
29+
}
30+
}
31+
GRAPHQL
3232
end
3333

3434
subject { result }

api/spec/graph/refinery/api/fields/pages/pages_field_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ module Pages
2222
end
2323

2424
let(:query_string) do
25-
<<-QUERY
26-
query {
27-
pages {
28-
title
29-
}
30-
}
31-
QUERY
25+
<<-GRAPHQL
26+
query {
27+
pages {
28+
title
29+
}
30+
}
31+
GRAPHQL
3232
end
3333

3434
subject { result }

api/spec/graph/refinery/api/mutations/pages/create_page_mutation_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ module Pages
2020
end
2121

2222
let(:query_string) do
23-
<<~QUERY
23+
<<-GRAPHQL
2424
mutation createPage($input: CreatePageInput!) {
2525
createPage(input: $input) {
2626
page {
2727
title
2828
}
2929
}
3030
}
31-
QUERY
31+
GRAPHQL
3232
end
3333

3434
subject { result }

api/spec/graph/refinery/api/mutations/pages/delete_page_mutation_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ module Pages
2222
end
2323

2424
let(:query_string) do
25-
<<~QUERY
25+
<<-GRAPHQL
2626
mutation deletePage($input: DeletePageInput!) {
2727
deletePage(input: $input) {
2828
page {
2929
id
3030
}
3131
}
3232
}
33-
QUERY
33+
GRAPHQL
3434
end
3535

3636
subject { result }

api/spec/graph/refinery/api/mutations/pages/update_page_mutation_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module Pages
2222
end
2323

2424
let(:query_string) do
25-
<<~QUERY
25+
<<-GRAPHQL
2626
mutation updatePage($input: UpdatePageInput!) {
2727
updatePage(input: $input) {
2828
page {
@@ -31,7 +31,7 @@ module Pages
3131
}
3232
}
3333
}
34-
QUERY
34+
GRAPHQL
3535
end
3636

3737
subject { result }

0 commit comments

Comments
 (0)