Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor refactoring in the specs

  • Loading branch information...
commit be7ac177821f3139f851e7ac9a492f607dcb86c2 1 parent b50eafa
Jeff Kreeftmeijer authored
Showing with 7 additions and 6 deletions.
  1. +6 −6 spec/tumblr_spec.rb
  2. +1 −0  tumblr
12 spec/tumblr_spec.rb
View
@@ -20,13 +20,13 @@
it "should return a tumblr object" do
response = Tumblr::Request.read
- response['tumblr'].is_a?(Hash).should eql(true)
+ response['tumblr'].should be_instance_of(Hash)
end
it "should even return a tumblr object when no blog specified" do
Tumblr::blog = nil
response = Tumblr::Request.read
- response['tumblr'].is_a?(Hash).should eql true
+ response['tumblr'].should be_instance_of(Hash)
end
end
@@ -122,7 +122,7 @@
it "shoud always return an array" do
response = Tumblr::Post.all
- response.is_a?(Array).should eql(true)
+ response.should be_instance_of(Array)
end
end
@@ -163,7 +163,7 @@
it "shoud never return an array" do
response = Tumblr::Post.first
- response.is_a?(Array).should eql(false)
+ response.should_not be_instance_of(Array)
end
end
@@ -198,7 +198,7 @@
it "shoud never return an array" do
response = Tumblr::Post.last
- response.is_a?(Array).should eql(false)
+ response.should_not be_instance_of(Array)
end
end
@@ -220,7 +220,7 @@
it "shoud never return an array" do
response = Tumblr::Post.find(108796131)
- response.is_a?(Array).should eql(false)
+ response.should_not be_instance_of(Array)
end
end
1  tumblr
@@ -0,0 +1 @@
+Subproject commit b50eafad7b8ebbe733d2d8e074b6b78b38590247
Please sign in to comment.
Something went wrong with that request. Please try again.