This commit is contained in:
r888888888
2015-05-21 15:05:55 -07:00
parent af86099ac5
commit 2ddc93723c
17 changed files with 3156 additions and 3554 deletions

View File

@@ -35,6 +35,18 @@ class UploadsControllerTest < ActionController::TestCase
assert_response :success
end
context "for a twitter post" do
setup do
VCR.use_cassette("upload-new-twitter", :record => :once) do
get :new, {:url => "https://twitter.com/frappuccino/status/566030116182949888"}, {:user_id => @user.id}
end
end
should "render" do
assert_response :success
end
end
context "for a post that has already been uploaded" do
setup do
@post = FactoryGirl.create(:post, :source => "aaa")