spec/linodians/employee_spec.rb in linodians-1.0.0 vs spec/linodians/employee_spec.rb in linodians-1.0.1

- old
+ new

@@ -1,10 +1,10 @@ require 'spec_helper' describe Linodians::Employee do let(:employee) do - VCR.use_cassette('new_data') { Linodians::Group.new.lookup('rohara') } + VCR.use_cassette('new_data') { Linodians::Group.new.lookup('marques') } end describe '#photo' do let(:photo) { VCR.use_cassette('photo') { employee.photo } } @@ -17,19 +17,19 @@ end end describe '#[]' do it 'accesses the employee info' do - expect(employee[:twitter]).to eql 'sirrohara' + expect(employee[:twitter]).to eql 'displague' end it 'supports strings as keys' do - expect(employee['twitter']).to eql 'sirrohara' + expect(employee['twitter']).to eql 'displague' end it 'supports symbols as keys' do - expect(employee[:twitter]).to eql 'sirrohara' + expect(employee[:twitter]).to eql 'displague' end it 'returns nil if the key does not exist' do expect(employee[:other]).to be_nil end @@ -41,15 +41,15 @@ end end describe '#respond_to?' do it 'truthfully responds for proxied methods' do - expect(employee.respond_to? :twitter).to be_truthy + expect(employee.respond_to?(:twitter)).to be_truthy end it 'returns false for methods that it cannot handle' do - expect(employee.respond_to? :other).to be_falsey + expect(employee.respond_to?(:other)).to be_falsey end end describe '#to_h' do it 'returns a hash' do @@ -63,8 +63,8 @@ expect(employee[:new_key]).to be_nil end end it 'proxies methods as data hash keys' do - expect(employee.twitter).to eql 'sirrohara' + expect(employee.twitter).to eql 'displague' end end