Skip to content
This repository
Browse code

[Specs] Minor fix for Command::Push.

  • Loading branch information...
commit a478de621ef581735937c208c61d9dbe9e5b6e75 1 parent d59059d
Fabio Pelosin irrationalfab authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 spec/functional/command/push_spec.rb
6 spec/functional/command/push_spec.rb
@@ -44,9 +44,9 @@ def master_repo
44 44 git_config('local_repo', 'remote.origin.url').should == (tmp_repos_path + 'upstream').to_s
45 45
46 46 # prepare the spec
47   - spec_fix = (fixture('spec-repos') + 'master/JSONKit/1.4/JSONKit.podspec').read
48   - spec_add = spec_fix.gsub(/https:\/\/github\.com\/johnezang\/JSONKit\.git/, fixture('integration/JSONKit').to_s)
49   - spec_add.gsub!(/'JSONKit'/, "'PushTest'")
  47 + spec = (fixture('spec-repos') + 'master/JSONKit/1.4/JSONKit.podspec').read
  48 + spec_fix = spec.gsub(/https:\/\/github\.com\/johnezang\/JSONKit\.git/, fixture('integration/JSONKit').to_s)
  49 + spec_add = spec.gsub(/'JSONKit'/, "'PushTest'")
50 50 File.open(temporary_directory + 'JSONKit.podspec', 'w') {|f| f.write(spec_fix) }
51 51 File.open(temporary_directory + 'PushTest.podspec', 'w') {|f| f.write(spec_add) }
52 52 end

0 comments on commit a478de6

Please sign in to comment.
Something went wrong with that request. Please try again.