Sha256: bc7989570fee34e0fb78f6871595fd5f4e0b7f7ec309fbf88246f25526f2d2c3

Contents?: true

Size: 387 Bytes

Versions: 13

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe RedisWebManager::DashboardHelper, type: :helper do
  describe 'helper' do
    it 'returns graph_canvas tag (div)' do
      expect(helper.graph_canvas(nil, :test)).to match(/div/)
    end

    it 'returns graph_canvas tag (canvas)' do
      expect(helper.graph_canvas([1], :test)).to match(/canvas/)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
redis_web_manager-0.4.0 spec/helpers/dashboard_helper_spec.rb
redis_web_manager-0.3.9 spec/helpers/dashboard_helper_spec.rb
redis_web_manager-0.3.8 spec/helpers/dashboard_helper_spec.rb
redis_web_manager-0.3.6 spec/helpers/dashboard_helper_spec.rb
redis_web_manager-0.3.5 spec/helpers/dashboard_helper_spec.rb
redis_web_manager-0.3.4 spec/helpers/dashboard_helper_spec.rb
redis_web_manager-0.3.3 spec/helpers/dashboard_helper_spec.rb
redis_web_manager-0.3.2 spec/helpers/dashboard_helper_spec.rb
redis_web_manager-0.3.1 spec/helpers/dashboard_helper_spec.rb
redis_web_manager-0.3.0 spec/helpers/dashboard_helper_spec.rb
redis_web_manager-0.2.1 spec/helpers/dashboard_helper_spec.rb
redis_web_manager-0.2.0 spec/helpers/dashboard_helper_spec.rb
redis_web_manager-0.1.8 spec/helpers/dashboard_helper_spec.rb