Sha256: ded7db8ec027b7ab8ec0be0aa7a9c69bb4f04cbfc9e31de7e4c28251711cd986

Contents?: true

Size: 681 Bytes

Versions: 1

Compression:

Stored size: 681 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Barometer::WebService 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

1 entries across 1 versions & 1 rubygems

Version Path
barometer-0.8.0 spec/web_services/web_services_spec.rb