Sha256: 2a2c497f5a1c0b86cc6d3408dd9d6394e3c7f1f27efc126d94fffe4ea22c72c2

Contents?: true

Size: 503 Bytes

Versions: 4

Compression:

Stored size: 503 Bytes

Contents

require 'spec_helper'

describe RedisAnalytics::Dashboard::Engine do

  subject(:app) { RedisAnalytics::Dashboard::Engine }

  context 'the pretty dashboard' do

    it 'should be mapped to configured endpoint' do
      get '/'
      last_response.ok?
    end

    it 'should be content-type html' do
      get '/'
      last_response.headers['Content-Type'] == "text/html"
    end

    it 'should contain the word Visits' do
      get '/'
      last_response.body.include? "Visits"
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
redis_analytics-1.1.0 spec/lib/redis_analytics/engine_spec.rb
redis_analytics-1.0.1 spec/lib/redis_analytics/engine_spec.rb
redis_analytics-1.0.0 spec/lib/redis_analytics/engine_spec.rb
redis_analytics-0.7.1 spec/lib/redis_analytics/engine_spec.rb