aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2018-01-17 15:49:39 +0100
committerZog2018-01-17 15:51:44 +0100
commit5b1c1be8cd9526b08ff26b5e50ffd228b0a25374 (patch)
treeace717f02f7470f3c47bce7798d55099248decc2
parent3d2ada1541337efa64334dcafa6214556e76ad27 (diff)
downloadchouette-core-5b1c1be8cd9526b08ff26b5e50ffd228b0a25374.tar.bz2
Refs #5586; Add more specs on AF83::Decorator::Link
-rw-r--r--spec/lib/af83/decorator/decorator_link_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/af83/decorator/decorator_link_spec.rb b/spec/lib/af83/decorator/decorator_link_spec.rb
index 356dcc527..4e2726be9 100644
--- a/spec/lib/af83/decorator/decorator_link_spec.rb
+++ b/spec/lib/af83/decorator/decorator_link_spec.rb
@@ -26,6 +26,8 @@ RSpec.describe AF83::Decorator::Link, type: :decorator do
expect(link.html_options[:class]).to eq "new_class"
link.class = "another_class"
expect(link.html_options[:class]).to eq "another_class"
+ link.class = %w(foo bar)
+ expect(link.html_options[:class]).to eq "foo bar"
end
end
@@ -40,6 +42,8 @@ RSpec.describe AF83::Decorator::Link, type: :decorator do
expect(link.html_options[:class]).to eq "initial_class new_class"
link.extra_class = "another_class"
expect(link.html_options[:class]).to eq "initial_class new_class another_class"
+ link.extra_class = %w(foo bar)
+ expect(link.html_options[:class]).to eq "initial_class new_class another_class foo bar"
end
end