Sha256: 1de8505e8cc9f4267d5ae87a4ab21b6154ab538942b7b7c05776616a8130c4ca
Contents?: true
Size: 523 Bytes
Versions: 3
Compression:
Stored size: 523 Bytes
Contents
require 'spec_helper' describe TwiAuth::OAuth do before :all do pull_config @oauth = TwiAuth::OAuth.new(@oauth_key, @oauth_secret) end it "should be not nil" do @oauth.should_not be_nil end it "should get an ok" do @oauth.get("/1/help/test.json").eql?("ok") end it "should post and delete a status" do response = @oauth.post("/1/statuses/update.json", {:status => 'test status'}) json = parse_json(response.body) @oauth.get("/1/statuses/destroy/#{json['id']}.json") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
twiauth-0.1.0 | spec/oauth_spec.rb |
twiauth-0.0.2 | spec/oauth_spec.rb |
twiauth-0.0.1 | spec/oauth_spec.rb |