Sha256: c1d78304015c8af573f16e9610fc216031e4830b57dee841e103e990ddfdc155

Contents?: true

Size: 436 Bytes

Versions: 12

Compression:

Stored size: 436 Bytes

Contents

module Nyauth
  module Test
    module FeatureMacros
      include Nyauth::SessionConcern

      def sign_in(client)
        Nyauth::Nyan.on_test_request do |nyauth_nyan|
          nyauth_nyan.session.store(client, client.class.name.demodulize.underscore)
        end
      end

      def sign_out
        Nyauth::Nyan.on_test_request do |nyauth_nyan|
          nyauth_nyan.session.session.clear
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
nyauth-0.7.2 lib/nyauth/test/feature_macros.rb
nyauth-0.7.1 lib/nyauth/test/feature_macros.rb
nyauth-0.7.0 lib/nyauth/test/feature_macros.rb
nyauth-0.6.2 lib/nyauth/test/feature_macros.rb
nyauth-0.6.1 lib/nyauth/test/feature_macros.rb
nyauth-0.6.0 lib/nyauth/test/feature_macros.rb
nyauth-0.5.0 lib/nyauth/test/feature_macros.rb
nyauth-0.4.0 lib/nyauth/test/feature_macros.rb
nyauth-0.3.0 lib/nyauth/test/feature_macros.rb
nyauth-0.2.8 lib/nyauth/test/feature_macros.rb
nyauth-0.2.7 lib/nyauth/test/feature_macros.rb
nyauth-0.2.6 lib/nyauth/test/feature_macros.rb