Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Start adding RSpec examples for the API

  • Loading branch information...
commit fc740ca476222c050c03a5ef93c9ac8ce4308b05 1 parent 810c61e
@rtyler authored
Showing with 22 additions and 0 deletions.
  1. +15 −0 spec/api_spec.rb
  2. +7 −0 spec/spec_helper.rb
View
15 spec/api_spec.rb
@@ -0,0 +1,15 @@
+require 'spec_helper'
+
+
+describe SauceTV::API do
+ subject { SauceTV::API.new('rspec', 'rspec') }
+
+ describe :format do
+ it 'should always be :json' do
+ subject.format.should be :json
+ end
+ end
+
+end
+
+
View
7 spec/spec_helper.rb
@@ -0,0 +1,7 @@
+require 'rspec'
+require 'rack/test'
+
+$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')
+
+require 'saucetv/api'
+
Please sign in to comment.
Something went wrong with that request. Please try again.