Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix tests

  • Loading branch information...
commit 43180e705838a64d33196002bc79c94664edcac5 1 parent 9315008
@aprimadi aprimadi authored
Showing with 1 addition and 9 deletions.
  1. +1 −9 test/test_mini_fb.rb
View
10 test/test_mini_fb.rb
@@ -1,4 +1,3 @@
-require 'test/unit'
require 'rspec'
require 'uri'
require 'yaml'
@@ -28,12 +27,6 @@
# this code runs once per-test
end
- it "should do something useful, rather than just being called test1" do
- # el code here
- puts 'whatup'
- true.should be_true
- end
-
it 'test_uri_escape' do
URI.escape("x=y").should eq("x=y")
end
@@ -50,7 +43,7 @@
# Example request and secret taken from http://developers.facebook.com/docs/authentication/canvas
secret = 'secret'
req = 'vlXgu64BQGFSQrY0ZcJBZASMvYvTHu9GQ0YM9rjPSso.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsIjAiOiJwYXlsb2FkIn0'
- assert_equal MiniFB.signed_request_params(secret, req), {"0" => "payload"}
+ expect(MiniFB.signed_request_params(secret, req)).to eq({"0" => "payload"})
end
end
@@ -76,5 +69,4 @@ def test_me_with_fields
}
snap = MiniFB.get(access_token, 'me', :fields =>fields.keys)
-
end
Please sign in to comment.
Something went wrong with that request. Please try again.