Sha256: ab05b22ff138a86bbb030441d99776707d3a62bcc76df8e2f865e86d90525ebe

Contents?: true

Size: 306 Bytes

Versions: 13

Compression:

Stored size: 306 Bytes

Contents

require 'spec_helper'

describe AuditRails::AuditsHelper do
  context 'active_class' do
    it 'should return "active" when current action is "analytics"' do
      controller.should_receive(:action_name).and_return('analytics')

      helper.active_class('analytics').should eq('active')
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
audit_rails-2.0.10 spec/helpers/audit_rails/audits_helper_spec.rb
audit_rails-2.0.9 spec/helpers/audit_rails/audits_helper_spec.rb
audit_rails-2.0.8 spec/helpers/audit_rails/audits_helper_spec.rb
audit_rails-2.0.7 spec/helpers/audit_rails/audits_helper_spec.rb
audit_rails-2.0.6 spec/helpers/audit_rails/audits_helper_spec.rb
audit_rails-2.0.5 spec/helpers/audit_rails/audits_helper_spec.rb
audit_rails-2.0.4 spec/helpers/audit_rails/audits_helper_spec.rb
audit_rails-2.0.3 spec/helpers/audit_rails/audits_helper_spec.rb
audit_rails-2.0.2 spec/helpers/audit_rails/audits_helper_spec.rb
audit_rails-2.0.1 spec/helpers/audit_rails/audits_helper_spec.rb
audit_rails-2.0.0 spec/helpers/audit_rails/audits_helper_spec.rb
audit_rails-1.1.10 spec/helpers/audit_rails/audits_helper_spec.rb
audit_rails-1.1.9 spec/helpers/audit_rails/audits_helper_spec.rb