Sha256: b2eb9a7de2955feb5f981eb9b5f0ceb9bd32736c6e45794343c684566c7bfff5

Contents?: true

Size: 769 Bytes

Versions: 6

Compression:

Stored size: 769 Bytes

Contents

require File.join(File.dirname(__FILE__), %w[.. .. spec_helper])

describe Feedzirra::Backend::DevNull do
  before do
    @backend = Feedzirra::Backend::DevNull.new
  end
  
  it_should_behave_like "all backends"
  
  it "should initialize properly" do
    Feedzirra::Backend::DevNull.new
  end
  
  describe "#set" do
    it "should accept two arguments" do
      lambda {
        @backend.set('foo', 'nothing') 
      }.should_not raise_error
    end
  end
  
  describe "#get" do
    it "should accept one argument" do
      lambda {
        @backend.get('foo') 
      }.should_not raise_error
    end
    
    it "should return nil even after something is set" do
      @backend.set('junk', 'something')
      @backend.get('junk').should be_nil
    end
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jsl-feedzirra-0.0.12.2 spec/feedzirra/backend/dev_null_spec.rb
jsl-feedzirra-0.0.12.3 spec/feedzirra/backend/dev_null_spec.rb
jsl-feedzirra-0.0.12.4 spec/feedzirra/backend/dev_null_spec.rb
jsl-feedzirra-0.0.12.5 spec/feedzirra/backend/dev_null_spec.rb
jsl-feedzirra-0.0.12.6 spec/feedzirra/backend/dev_null_spec.rb
jsl-feedzirra-0.0.12.7 spec/feedzirra/backend/dev_null_spec.rb