Sha256: 96673658adfd5d81201475d771f8c84ebd1fcc897030a39fc482026f1fab6074

Contents?: true

Size: 790 Bytes

Versions: 1

Compression:

Stored size: 790 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'spec_helper')
# NOT SUPPORTED YET!
# 
# describe "Rails::Authentication.customizations" do
#   
#   before(:each) do
#     Rails::Authentication.default_customizations.clear
#   end
#   
#   it "should allow addition to the customizations" do
#     Rails::Authentication.customize_default { "ONE" }
#     Rails::Authentication.default_customizations.first.call.should == "ONE"
#   end
#   
#   it "should allow multiple additions to the customizations" do
#     Rails::Authentication.customize_default {"ONE"}
#     Rails::Authentication.customize_default {"TWO"}
# 
#     Rails::Authentication.default_customizations.first.call.should == "ONE"
#     Rails::Authentication.default_customizations.last.call.should  == "TWO"
#   end
#   
# end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
myobie-rails-auth-0.0.4 spec/core/costumizations_spec.rb