Sha256: 38ef622bcf178474122996aaa95d5fd1b122d9f992eff5d8f49a278516934e74

Contents?: true

Size: 915 Bytes

Versions: 10

Compression:

Stored size: 915 Bytes

Contents

# require File.join(Dir.pwd, 'spec', 'spec_helper')

# describe 'User' do

#   before do
#     simulate_connection_to_server
#   end

#   after do

#   end

#   it 'should pass retrieving a user from list' do
#     request_data = FactoryGirl.attributes_for(:user_list, {
#       :total_entries => 1,
#       :total_pages => 1,
#       :users => [FactoryGirl.attributes_for(:user)]
#     }).to_json
#     TheCity.stub(:admin_request).and_return( TheCityResponse.new(200, request_data) )

#     user_list = TheCity::UserList.new

#     user = user_list[0]
#     user.full_name.should == "Sammy Shepherd"
#   end


#   it 'should pass retrieving a user' do
#     request_data = FactoryGirl.attributes_for(:user).to_json
#     TheCity.stub(:admin_request).and_return( TheCityResponse.new(200, request_data) )
#     user = TheCity::User.load_by_id(123)
#     user.full_name.should == "Sammy Shepherd"
#   end  

# end


Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
church-community-builder-0.2.2 spec/api/user_spec.rb
church-community-builder-0.2.1 spec/api/user_spec.rb
church-community-builder-0.2.0 spec/api/user_spec.rb
church-community-builder-0.1.6 spec/api/user_spec.rb
church-community-builder-0.1.5 spec/api/user_spec.rb
church-community-builder-0.1.4 spec/api/user_spec.rb
church-community-builder-0.1.3 spec/api/user_spec.rb
church-community-builder-0.1.2 spec/api/user_spec.rb
church-community-builder-0.1.1 spec/api/user_spec.rb
church-community-builder-0.1.0 spec/api/user_spec.rb