diff options
| author | Zog | 2018-01-17 15:49:39 +0100 |
|---|---|---|
| committer | Zog | 2018-01-25 17:18:00 +0100 |
| commit | b73fa6fca72590e943ca36265c39f0672765b9aa (patch) | |
| tree | 727c4b190b76ac8ba3e48941197d1e29c42bdd4b | |
| parent | ef62577ec90a0eb06c831052b6ab8aea8ade405f (diff) | |
| download | chouette-core-b73fa6fca72590e943ca36265c39f0672765b9aa.tar.bz2 | |
Refs #5586; Add more specs on AF83::Decorator::Link
| -rw-r--r-- | spec/lib/af83/decorator/decorator_link_spec.rb | 4 |
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 |
