Remove unused Pool methods: create_anonymous/options/id_to_name (#3206)

* Pool.id_to_name: never used.
* Pool.create_anonymous: never used.
* Pool.options: unused since e7aff87.
This commit is contained in:
evazion
2017-07-09 14:32:17 -05:00
parent af35c82d96
commit 76c90cc0e4
2 changed files with 0 additions and 33 deletions

View File

@@ -53,10 +53,6 @@ class PoolTest < ActiveSupport::TestCase
should "be mapped to a pool id" do
assert_equal(@pool.id, Pool.name_to_id(@pool.id.to_s))
end
should "be mapped to its name" do
assert_equal(@pool.name, Pool.id_to_name(@pool.id))
end
end
context "Reverting a pool" do
@@ -317,16 +313,4 @@ class PoolTest < ActiveSupport::TestCase
assert_nil(@p3_neighbors.next)
end
end
context "An anonymous pool" do
setup do
user = Timecop.travel(1.month.ago) {FactoryGirl.create(:user)}
CurrentUser.user = user
end
should "have a name starting with anon" do
pool = Pool.create_anonymous
assert_match(/^anon:\d+$/, pool.name)
end
end
end