Sha256: 9a534f196990f0a8c8c80efb3cccee50aa032d20d93c7cab8fed509aa76470ff
Contents?: true
Size: 599 Bytes
Versions: 24
Compression:
Stored size: 599 Bytes
Contents
RSpec.describe Percy do before(:each) { Percy.reset } describe '#config' do it 'returns a config object' do expect(Percy.config.api_url).to eq('http://localhost:3000/api/v1') end end describe '#client' do it 'returns a Percy::Client that is passed the global config object by default' do config = Percy.config expect(Percy.client.config).to eq(config) end end describe '#reset' do it 'clears the main global config object' do old_config = Percy.client.config Percy.reset expect(old_config).to_not eq(Percy.config) end end end
Version data entries
24 entries across 24 versions & 1 rubygems