diff --git a/spec/compact_index_spec.rb b/spec/compact_index_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/compact_index_spec.rb
+++ b/spec/compact_index_spec.rb
@@ -43,8 +43,6 @@ describe CompactIndex do
     end
 
     it "multiple versions" do
-      today = Time.now
-      yesterday = Time.at(Time.now.to_i - 86_400)
       param = [
         build_version(:number => "1.0.1", :checksum => "abc1"),
         build_version(:number => "1.0.2", :checksum => "abc2")
diff --git a/spec/versions_file_spec.rb b/spec/versions_file_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/versions_file_spec.rb
+++ b/spec/versions_file_spec.rb
@@ -38,7 +38,7 @@ describe CompactIndex::VersionsFile do
                               ])
       ]
     end
-    let(:versions_file) { versions_file = CompactIndex::VersionsFile.new(file.path) }
+    let(:versions_file) { CompactIndex::VersionsFile.new(file.path) }
 
     describe "#create" do
       it "writes one line per gem" do
Suppress `warning: assigned but unused variable`