Sha256: 15788ccc1431d5b516b70b4a0bc0bbaf707cf1c30e844b3e40ccbc65797c7f02

Contents?: true

Size: 502 Bytes

Versions: 10

Compression:

Stored size: 502 Bytes

Contents

require './spec/spec_helper'

describe SparkApi do

  it "should use 'yajl-ruby' for parsing json" do
    MultiJson.engine.should eq(MultiJson::Adapters::Yajl) unless jruby?
  end

  it "should load the version" do
    subject::VERSION.should match(/\d+\.\d+\.\d+/)
  end

  it "should give me a client connection" do
    subject.client.should be_a(SparkApi::Client)
  end

  it "should reset my connection" do
    c1 = subject.client
    subject.reset
    subject.client.should_not eq(c1)
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spark_api-1.3.16 spec/unit/spark_api_spec.rb
spark_api-1.3.15 spec/unit/spark_api_spec.rb
spark_api-1.3.14 spec/unit/spark_api_spec.rb
spark_api-1.3.13 spec/unit/spark_api_spec.rb
spark_api-1.3.10 spec/unit/spark_api_spec.rb
spark_api-1.3.9 spec/unit/spark_api_spec.rb
spark_api-1.3.6 spec/unit/spark_api_spec.rb
spark_api-1.3.3 spec/unit/spark_api_spec.rb
spark_api-1.3.1 spec/unit/spark_api_spec.rb
spark_api-1.3.0 spec/unit/spark_api_spec.rb