test/features/gemfile_test.rb in eefgilm-0.0.5 vs test/features/gemfile_test.rb in eefgilm-1.0.0

- old
+ new

@@ -13,24 +13,28 @@ @worker = Eefgilm::Gemfile.new("test/data/sources/dummy") end it "must remove a files comments" do @worker.clean!.wont_match /.../ - #File.read(@file) {|f| f.read }.wont_match /#(.*)$/ end - it "should Alphabetize each gem in your gemfile" do - @worker.clean! - @worker.lines.must_equal @worker.lines.sort - end - it "should remove unnecessary whitespace" do regex = /(?<=^|\[)\s+|(?<=\s)\s+/ count = 0 @worker.clean! File.read(@file).each_line do |line| count += 1 if regex.match(line) end - count.must_equal 1 + count.must_equal 9 end + + it "should alphabetize groups" do + @worker.clean! + @worker.groups[:all].must_equal @worker.groups[:all].sort + end + + # it "should alphabetize gems within a group" do + + # end + end end