Skip to content

Commit

Permalink
fix(ruby): prefix models by the module (#3927)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored Oct 9, 2024
1 parent 0fc6f86 commit 54e1b5b
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion templates/ruby/tests/client/benchmark.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ require 'algolia'
require 'test/unit'

class BenchmarkClient{{#lambda.pascalcase}}{{{client}}}{{/lambda.pascalcase}} < Test::Unit::TestCase
include Algolia::{{{modelModule}}}
{{#blocksBenchmark}}
{{> tests/client/tests}}
{{/blocksBenchmark}}
Expand Down
1 change: 0 additions & 1 deletion templates/ruby/tests/client/client.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ require 'algolia'
require 'test/unit'

class TestClient{{#lambda.pascalcase}}{{{client}}}{{/lambda.pascalcase}} < Test::Unit::TestCase
include Algolia::{{{modelModule}}}
{{#blocksClient}}
{{> tests/client/tests}}
{{/blocksClient}}
Expand Down
1 change: 0 additions & 1 deletion templates/ruby/tests/e2e/e2e.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ require_relative '../helpers'
Dotenv.load('../../.env')

class Test{{#lambda.pascalcase}}{{{client}}}{{/lambda.pascalcase}}E2E < Test::Unit::TestCase
include Algolia::{{{modelModule}}}
def setup
@client = Algolia::{{#lambda.pascalcase}}{{{client}}}{{/lambda.pascalcase}}.create(
ENV.fetch('ALGOLIA_APPLICATION_ID', nil),
Expand Down
2 changes: 1 addition & 1 deletion templates/ruby/tests/generateInnerParams.mustache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{#isNull}}nil {{/isNull}}{{#isVerbatim}}{{{value}}}{{/isVerbatim}}{{#isString}}"{{{value}}}" {{/isString}}{{#isInteger}}{{{value}}} {{/isInteger}}{{#isLong}}{{{value}}} {{/isLong}}{{#isDouble}}{{{value}}} {{/isDouble}}{{#isBoolean}}{{{value}}} {{/isBoolean}} {{#isEnum}}'{{{value}}}' {{/isEnum}}{{#isArray}} [ {{#value}}{{> tests/generateParams}}{{/value}} ] {{/isArray}}{{#isObject}} {{{objectName}}}.new({{#value}}{{> tests/generateParams}}{{/value}}) {{/isObject}}{{#isFreeFormObject}} {{#isAnyType}} { {{#value}}{{#entrySet}}'{{{key}}}':"{{{value}}}"{{^-last}},{{/-last}}{{/entrySet}}{{/value}} } {{/isAnyType}} {{^isAnyType}} { {{#value}}{{> tests/generateParams}}{{/value}} } {{/isAnyType}} {{/isFreeFormObject}}
{{#isNull}}nil {{/isNull}}{{#isVerbatim}}{{{value}}}{{/isVerbatim}}{{#isString}}"{{{value}}}" {{/isString}}{{#isInteger}}{{{value}}} {{/isInteger}}{{#isLong}}{{{value}}} {{/isLong}}{{#isDouble}}{{{value}}} {{/isDouble}}{{#isBoolean}}{{{value}}} {{/isBoolean}} {{#isEnum}}'{{{value}}}' {{/isEnum}}{{#isArray}} [ {{#value}}{{> tests/generateParams}}{{/value}} ] {{/isArray}}{{#isObject}} Algolia::{{{modelModule}}}::{{{objectName}}}.new({{#value}}{{> tests/generateParams}}{{/value}}) {{/isObject}}{{#isFreeFormObject}} {{#isAnyType}} { {{#value}}{{#entrySet}}'{{{key}}}':"{{{value}}}"{{^-last}},{{/-last}}{{/entrySet}}{{/value}} } {{/isAnyType}} {{^isAnyType}} { {{#value}}{{> tests/generateParams}}{{/value}} } {{/isAnyType}} {{/isFreeFormObject}}
1 change: 0 additions & 1 deletion templates/ruby/tests/requests/requests.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ require 'algolia'
require 'test/unit'

class Test{{#lambda.pascalcase}}{{{client}}}{{/lambda.pascalcase}} < Test::Unit::TestCase
include Algolia::{{{modelModule}}}
def setup
@client = Algolia::{{#lambda.pascalcase}}{{{client}}}{{/lambda.pascalcase}}.create(
'APP_ID',
Expand Down

0 comments on commit 54e1b5b

Please sign in to comment.