Sha256: f089c4dac5d855061172bcaaa24413594933d5b5b07b2a1dd9ee85a96b9d826d

Contents?: true

Size: 390 Bytes

Versions: 1

Compression:

Stored size: 390 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper.rb')
require 'ostruct'

describe Uaid::ViewHelper do
  include Uaid::ViewHelper
  
  attr_reader :request
  
  it 'should provide a user_agent from the current request' do
    @request = OpenStruct.new(:headers => {'user-agent' => 'whatever'})
    user_agent.should_not be_nil
    user_agent.name.should == 'unknown'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fivepointssolutions-uaid-0.0.0 spec/view_helper_spec.rb