Sha256: 57195d0e5b0e0d9cb41c0427eee8877f8655fb024c87802cfc30fc20dc4dbff4

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 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

1 entries across 1 versions & 1 rubygems

Version Path
redis_web_manager-0.1.6 spec/helpers/dashboard_helper_spec.rb