Skip to content

Commit

Permalink
Hound
Browse files Browse the repository at this point in the history
  • Loading branch information
pablobm committed May 26, 2022
1 parent dd9674c commit bf9351f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions spec/administrate/views/fields/has_one/_show_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def view.namespace
class: ProductMetaTag,
),
attributes: [
nested_simple_field
]
nested_simple_field,
],
)

@has_one_field = instance_double(
Expand Down Expand Up @@ -83,10 +83,10 @@ def render_field
helpers: {
label: {
nested_has_one: {
simple_string_field: "Just a Simple String"
}
}
}
simple_string_field: "Just a Simple String",
},
},
},
)

render_field
Expand Down Expand Up @@ -121,7 +121,7 @@ def render_field
resource: double(
class: ProductMetaTag,
),
attributes: []
attributes: [],
)

nested_has_one = instance_double(
Expand All @@ -133,7 +133,7 @@ def render_field
html_class: "has-one",
to_partial_path: "fields/has_one/show",
display_associated_resource: "Resource Doubly Nested with HasOne",
name: "page"
name: "page",
)

nested_show_page_for_top_has_one = instance_double(
Expand All @@ -157,7 +157,7 @@ def render_field
locals: {
field: has_one_field,
page: page_double,
resource_name: "product_meta_tag"
resource_name: "product_meta_tag",
},
)

Expand Down

0 comments on commit bf9351f

Please sign in to comment.