spec/helpers/hyrax/charts_helper_spec.rb in hyrax-1.1.1 vs spec/helpers/hyrax/charts_helper_spec.rb in hyrax-2.0.0.beta1
- old
+ new
@@ -1,16 +1,16 @@
-require 'spec_helper'
-
-describe Hyrax::ChartsHelper do
+RSpec.describe Hyrax::ChartsHelper do
describe '#hash_to_chart' do
subject { helper.hash_to_chart(data) }
+
let(:data) do
{
'Foo' => 5,
'Bar' => 10
}
end
+
it do
is_expected.to eq(
drilldown: {
series: []
},
@@ -34,9 +34,10 @@
"Bar" => 1,
"Baz" => 2
}
}
end
+
it do
is_expected.to eq(
drilldown: {
series: [
{