Sha256: 5145d22159a1bd126fa62fbf032f8a502503ec0f6d0cb75cf33e2e5b9bfa4a66

Contents?: true

Size: 540 Bytes

Versions: 8

Compression:

Stored size: 540 Bytes

Contents

require File.join(File.dirname(__FILE__), "..", "spec_helper.rb")

describe 'Ampere', :ampere => true do
  before :all do
    Ampere.connect
    Redis.new.flushall
  end
  
  it 'should be able to connect' do
    Ampere.connected?.should be_true
    Ampere.disconnect
    Ampere.connected?.should be_false
  end
  
  # context 'Redis data store', :redis => true do
  #   it 'should come with a __guid set' do
  #     Redis.new['guid'].should == 0
  #   end
  # end
  
  after :all do
    Redis.new.flushall
    Ampere.disconnect
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ampere-1.2.1 spec/module/ampere_spec.rb
ampere-1.2.0 spec/module/ampere_spec.rb
ampere-1.1.1 spec/module/ampere_spec.rb
ampere-1.1.0 spec/module/ampere_spec.rb
ampere-1.0.0 spec/module/ampere_spec.rb
ampere-0.1.3 spec/module/ampere_spec.rb
ampere-0.1.2 spec/module/ampere_spec.rb
ampere-0.1.0 spec/module/ampere_spec.rb