Sha256: 995f7a28e78e64e2c04116b1efc7273c2c7a47e352df465da23b99343f1aed7e
Contents?: true
Size: 1022 Bytes
Versions: 2
Compression:
Stored size: 1022 Bytes
Contents
require 'spec_helper' STATUS_1 = <<END_STATUS_1 # On branch master # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: lib/dvdprofiler2xbmc/controllers/app.rb # modified: lib/dvdprofiler2xbmc/models/dvdprofiler_info.rb # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # t1 # t2 no changes added to commit (use "git add" and/or "git commit -a") END_STATUS_1 describe "GitHelper" do it "should parse the status and find modified files" do class A include GitHelper end a = A.new a.parse_modified_files(STATUS_1).should == ['lib/dvdprofiler2xbmc/controllers/app.rb', 'lib/dvdprofiler2xbmc/models/dvdprofiler_info.rb'] end it "should parse the status and find new files" do class A include GitHelper end a = A.new a.parse_new_files(STATUS_1).should == ['t1', 't2'] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
royw-git_shoes-0.0.0 | spec/git_helper_spec.rb |
royw-git_shoes-0.0.1 | spec/git_helper_spec.rb |