Sha256: 01d8b4ba6060d32c34dc2ceede6f55740ce6ff71878c691aa06012ff2d92639b

Contents?: true

Size: 656 Bytes

Versions: 8

Compression:

Stored size: 656 Bytes

Contents

require 'spec_helper'

describe "Web Services" do
  
  describe "and the class method" do
    
    describe "source" do
      
      it "stubs fetch" do
        lambda { Barometer::WebService.fetch }.should raise_error(NotImplementedError)
      end
      
      it "detects a Query object" do
        invalid = 1
        Barometer::WebService.send("_is_a_query?").should be_false
        Barometer::WebService.send("_is_a_query?", invalid).should be_false
        valid = Barometer::Query.new
        valid.is_a?(Barometer::Query).should be_true
        Barometer::WebService.send("_is_a_query?", valid).should be_true
      end

    end
    
  end
  
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
attack-barometer-0.5.0 spec/web_services/web_services_spec.rb
attack-barometer-0.6.0 spec/web_services/web_services_spec.rb
attack-barometer-0.6.1 spec/web_services/web_services_spec.rb
barometer-0.6.4 spec/web_services/web_services_spec.rb
barometer-0.6.2 spec/web_services/web_services_spec.rb
barometer-0.6.1 spec/web_services/web_services_spec.rb
barometer-0.5.0 spec/web_services/web_services_spec.rb
barometer-0.6.3 spec/web_services/web_services_spec.rb