Sha256: db87a83353de8c9a72fb6a18d270e4449034c22cb704fd935cd01c1977ce7369

Contents?: true

Size: 699 Bytes

Versions: 2

Compression:

Stored size: 699 Bytes

Contents

require "spec_helper"

describe PhishTank do
  it "should have a BASE_URI" do
    subject::BASE_URI.should eq "http://data.phishtank.com"
  end
  
  it 'should take an API key' do
    subject.api_key = "12345"
    subject.api_key.should eq "12345"
  end
  
  describe "#configure" do
    before(:all) do
      described_class.configure do |c|
        c.api_key = "12345"
        c.temp_directory = "/temporary"
        c.etag = "123456"
      end
    end

    its(:api_key)         { should eq "12345" }
    its(:temp_directory)  { should eq "/temporary" }
    its(:etag)            { should eq "123456" }
  end
  
  it { should respond_to(:update_feed!) }
  
  it { should respond_to(:search) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phishtank-0.1.2 spec/phishtank_spec.rb
phishtank-0.1.1 spec/phishtank_spec.rb