aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers/common_helper_spec.rb
diff options
context:
space:
mode:
authorRobert2017-12-15 08:24:24 +0100
committerRobert2017-12-15 08:32:30 +0100
commit443de38df52143f72d97308c28ac68f99e009757 (patch)
tree376521ea3e78070c3548c622a878bba26c124cb5 /spec/helpers/common_helper_spec.rb
parentb6067ba25bff1dc95975be49e3f9a02a5932202a (diff)
downloadchouette-core-443de38df52143f72d97308c28ac68f99e009757.tar.bz2
Fixes: #5281@1.2h; View specs and minor CR change from #50065281-workbench-import-structural-bug-reading-zip
- CR change from #5006, severity of zip file messages :warning -> :error - View specs for showing import_messages
Diffstat (limited to 'spec/helpers/common_helper_spec.rb')
-rw-r--r--spec/helpers/common_helper_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/helpers/common_helper_spec.rb b/spec/helpers/common_helper_spec.rb
index 186c4184e..1ffdc5bab 100644
--- a/spec/helpers/common_helper_spec.rb
+++ b/spec/helpers/common_helper_spec.rb
@@ -4,7 +4,7 @@ RSpec.describe CommonHelper do
Object.new.extend( described_class )
end
- describe 'string_keys_to_symbols' do
+ describe 'string_keys_to_symbols' do
context 'nullpotency on symbol keys' do
it { expect(subject.string_keys_to_symbols({})).to eq({}) }
it do
@@ -14,9 +14,9 @@ RSpec.describe CommonHelper do
end
end
- context 'changing string keys' do
+ context 'changing string keys' do
it { expect(subject.string_keys_to_symbols('alpha' => 100)).to eq(alpha: 100) }
-
+
it do
expect( subject.string_keys_to_symbols('a' => 10, b: 20) )
.to eq(a: 10, b: 20)
@@ -30,7 +30,7 @@ RSpec.describe CommonHelper do
context 'keys, not values, are changed' do
it do
expect(subject.string_keys_to_symbols(a: 'a', 'b' => 'b', 'c' => :c))
- .to eq(a: 'a', b: 'b', c: :c)
+ .to eq(a: 'a', b: 'b', c: :c)
end
end