Sha256: 5dce064dbf14520ed1b551f7cb10c2be23be62b2a547e218f29604d1cfc586ff

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

require_relative '../../spec_helper'

describe Barometer::Query::Format::Base do
  describe "and class methods" do
    describe "is?," do
      it "calls a stubbed undefined method" do
        expect { Barometer::Query::Format::Base.is?("valid") }.to raise_error(NotImplementedError)
      end
    end

    it "stubs country_code" do
      Barometer::Query::Format::Base.country_code(nil).should be_nil
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
barometer-0.9.1 spec/query/formats/base_spec.rb
barometer-0.9.0 spec/query/formats/base_spec.rb