Sha256: b08506c44d1c25e334bed92d9f117a69d5e5069042064a510d5e946ff0411a2d

Contents?: true

Size: 422 Bytes

Versions: 6

Compression:

Stored size: 422 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)

describe "Authentication using WpWrapper" do
  
  before(:each) do
    @client       =   init_admin_connection
  end
  
  it 'can successfully login given proper credentials' do
    @client.login.should == true
  end
  
  it 'can\'t login with invalid credentials' do
    invalid_client = init_invalid_connection
    invalid_client.login.should == false
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wp_wrapper-0.0.7 spec/wp_wrapper/authentication_spec.rb
wp_wrapper-0.0.6 spec/wp_wrapper/authentication_spec.rb
wp_wrapper-0.0.5 spec/wp_wrapper/authentication_spec.rb
wp_wrapper-0.0.4 spec/wp_wrapper/authentication_spec.rb
wp_wrapper-0.0.3 spec/wp_wrapper/authentication_spec.rb
wp_wrapper-0.0.2 spec/wp_wrapper/authentication_spec.rb