Sha256: 33a54acc92fa97b2cf368b7dd251251ef38844f51a7d2eb666aab3bbe80a059c

Contents?: true

Size: 485 Bytes

Versions: 27

Compression:

Stored size: 485 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper'))

describe Castronaut::Adapters::RestfulAuthentication::Adapter do

  describe "authenticate" do
    
    it "calls authenticate on the nested User model" do
      Castronaut::Adapters::RestfulAuthentication::User.should_receive(:authenticate).with('username', 'password')
      Castronaut::Adapters::RestfulAuthentication::Adapter.authenticate('username', 'password')
    end
    
  end

end

Version data entries

27 entries across 27 versions & 6 rubygems

Version Path
3mix-castronaut-0.5.0.2 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
masover-castronaut-0.4.4.4 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
masover-castronaut-0.4.4.5 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
masover-castronaut-0.5.0.1 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
p8-castronaut-0.6.1.1 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.2.0 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.2.5 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.3.0 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.3.5 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.3.6 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.4.1 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.4.2 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.4.3 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.4.4 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.4.5 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.4.6 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.5.0 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.5.1 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.5.2 spec/castronaut/adapters/restful_authentication/adapter_spec.rb
relevance-castronaut-0.5.3 spec/castronaut/adapters/restful_authentication/adapter_spec.rb