Sha256: 9a0355d930301ab37d2f5a94a79dd92d345bfc89206e819cee03ce397354b558
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 KB
Contents
RSpec.describe Dashing::Configuration do let(:instance) { Dashing::Configuration.new } it { expect(instance.engine_path).to eq('/dashing') } # it { expect(instance.scheduler).to be_a(::Rufus::Scheduler.new) } it { expect(instance.redis).to be_a(::ConnectionPool) } it { instance.redis.with { |r| expect(r).to be_a(::Redis) } } # Redis it { expect(instance.redis_host).to eq('127.0.0.1') } it { expect(instance.redis_port).to eq('6379') } it { expect(instance.redis_password).to be_nil } it { expect(instance.redis_timeout).to eq(3) } it { expect(instance.redis_namespace).to eq('dashing_events') } # Authorization it { expect(instance.auth_token).to be_nil } it { expect(instance.devise_allowed_models).to be_empty } # Jobs it { expect(instance.jobs_path.to_s).to include('app/jobs') } # Dashboards it { expect(instance.default_dashboard).to be_nil } it { expect(instance.dashboards_views_path.to_s).to include('app/views/dashing/dashboards') } it { expect(instance.dashboard_layout_path).to eq('dashing/dashboard') } # Widgets it { expect(instance.widgets_views_path.to_s).to include('app/views/dashing/widgets') } it { expect(instance.widgets_js_path.to_s).to include('app/assets/javascripts/dashing') } it { expect(instance.widgets_css_path.to_s).to include('app/assets/stylesheets/dashing') } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dashing-rails-2.6.2 | spec/lib/dashing/configuration_spec.rb |